How Can I Dynamically Add A Select Element To A Form Using Prototype & Rails? April 21, 2024 Post a Comment I have generated the code for a select & its objects using Rails: var insert_tag = 'Solution 1: I don't know Prototype, but your div element is missing an id attribute (currently it is invalid HTML):<div id="form_field_a"></div> CopyThen it seems to work: http://jsfiddle.net/KqVdf/1Also note that the value of insert_tag is one line without line breaks (got an error otherwise). Share Post a Comment for "How Can I Dynamically Add A Select Element To A Form Using Prototype & Rails?"
Post a Comment for "How Can I Dynamically Add A Select Element To A Form Using Prototype & Rails?"