Via jQuery I’m dynamically cloning an input checkbox object, and then I’m changing its name using this instruction:
row.find('[name="ACCCHB_CDARM"]').attr("name",id);
ACCCHB_CDARM is the attribute’s name of object I’m cloning.
There’s no problem using FireFox, but in IE it doesn’t change the original value!
Is this code correct?
Thank you very much.
Mirco
To reproduce your error, I’ve written the following code, which works just fine with Internet Explorer 8.0:
NewValueis alerted after changing thenameattribute toNewValue.It looks like that on older versions of Internet Explorer, the
nameattribute couldn’t be changed dynamically (the post dates back from the year 2005). The current MSDN documentation fornamestates the following:Further down in the documentation, where some examples are shown on how to dynamically change the
nameattribute you’ll find the following line:To bring my answer to the point, it looks like you’re using an older version of Internet Explorer.