Set HTML id attribute in Rails form select box -
How do I set ID attributes in my drop down box?
Here's my part of the question in question:
& Lt;% = builder.link_to_remove "Remove this item"%> & Lt;% end% & gt; the: id = & gt; The "Quantity_field" method works for text fields, but to see the HTML source for the selected fields I'm getting an ID of "estimate_items_attributes_0_material" for the content text box.
This is a strange incompatibility Any help would be greatly appreciated.
There is a parameter between the possible option and the HTML option. Then you have to do this:
& lt;% = builder Selection: Thickness, @ letters.map {| L [L.thickness, l.thickness]}, {} ,: id = & gt; "Thick_field"% & gt; You can find a doctor here: And it can also be helpful:
Comments
Post a Comment