Wednesday, September 3, 2014

CHtml - textField () YII

Standard


Example 1: Create a blank text field

 

RESULT

 




Example 2: Create a text box with the name and Value

 



RESULT

 




Example 3: Create a text box with custom attributes: id, width, maxlength

  'id' ,    'width' => 100 , 
        'maxlength' => 100 )); ?>

RESULT

 




Example 4: Create a text box with the attribute disabled. 

  True)); ?>

RESULT

 

      

Related Posts:

  • change the color of scrollbars add this in your style .css  to change the color of the scrollbars on my pages in Internet Explorer and Firefox ::-webkit-scrollba… Read More
  • Rating star html & JS html Code: JS Code: function ShowRating($element, rating){ $stars = $element.find('div'); $stars.rem… Read More
  • onload DIV window.onload = function() { document.getElementById('msg').innerHTML = 'loaded!' … Read More
  • laravel 5 ajax POST hi guys here is basic AJAX POST on laravel 5 i hope this will help for your advance project  thank you Route::group(['prefix' => 'aj… Read More
  • print div contain using JS function printsmcs() { var printsmcs = window.open('','','width=1500,height=1000'); printsmcs.document.open("text/html"); printsmcs.document.… Read More

1 comment: