HashanChamara / php-form-builder-class

Automatically exported from code.google.com/p/php-form-builder-class
0 stars 0 forks source link

how to assign a new css class to any feild like text box #178

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
kindly advise me how to assign a class to a specific field in the form 

Original issue reported on code.google.com by usamafer...@gmail.com on 24 Oct 2012 at 9:52

GoogleCodeExporter commented 8 years ago
php5
$form->addElement(new Element_Textbox("My Textbox:", "MyTextbox", array("class" 
=> "my-class")));

php5 >= 5.3
$form->addElement(new PFBC\Element\Textbox("My Textbox:", "MyTextbox", 
array("class" => "my-class")));

Original comment by aporterf...@imavex.com on 24 Oct 2012 at 1:06

GoogleCodeExporter commented 8 years ago
thanks a lot sir i am using php-form-builder for first time very good thing in 
all scenarios.

Original comment by usamafer...@gmail.com on 24 Oct 2012 at 1:16