nazihheni / php-form-builder-class

Automatically exported from code.google.com/p/php-form-builder-class
GNU General Public License v3.0
0 stars 0 forks source link

how to add placeholder to a textbox #180

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
kindly guide me how to add placeholder in the text box and password

Original issue reported on code.google.com by usamafer...@gmail.com on 30 Oct 2012 at 2:46

GoogleCodeExporter commented 9 years ago
//PFBC 3.x PHP5 >= 5.3
$form->addElement(new PFBC\Element\Textbox("Textbox:", "Textbox", 
array("placeholder" => "My Placeholder")));

//PFBC 3.x PHP5
$form->addElement(Element_Textbox("Textbox:", "Textbox", array("placeholder" => 
"My Placeholder")));

Original comment by ajporterfield@gmail.com on 30 Oct 2012 at 4:27