How to set Form Field Line Class

65 Views Asked by At

I added a field of type line to form. It created a field and inside that field is field with tag input. How can I set that input class?

1

There are 1 best solutions below

0
On BEST ANSWER
$form->addField('line','input')->setAttr('class','myclass');

should do it.