oscar esp wrote:
I have a code to clone a input. After that I need to change the id
and name it... seems that change id works fine but not the name:
jQuery("#"+inputID,addedItem).attr("id",newInputID); -> works ok
jQuery("#"+inputID,addedItem).attr("name",newInputID); -> seems
doesn't work
Any idea?
http://jquery.bassistance.de/api-browser/#attrStringObject
Note that you can't set the name property of input elements in IE. Use
$(html) or .append(html) or .html(html) to create elements on the fly
including the name property.
Maybe that helps.
--
Jörn Zaefferer
http://bassistance.de