Text_field_tag html class


#1

Hello,
how could I define class for input textfield,
text_field_tag(‘somefieldname’,nil,:class => ‘txt’) doesn’t work ? :frowning:

Marius Zilenas


#2

Marius Zilenas wrote:

Hello,
how could I define class for input textfield,
text_field_tag(‘somefieldname’,nil,:class => ‘txt’) doesn’t work ? :frowning:

Marius Zilenas

Hello,
sorry, false alarm !:slight_smile:
text_field_tag(‘somefieldname’,nil,“class” => ‘txt’) should work !:slight_smile:

Marius Zilenas