Reputation: 3641
In IE8 this
input.attr("name","exam.exam_Normal['" +normal_id_unique + "'].boolean_v");
Outputs this only in IE8....
<input propdescname="exam.exam_Normal['1'].boolean_v" type="hidden" value="0"/>
WHY WHY?? Why everywhere are problems... why
Upvotes: 3
Views: 3284
Reputation: 6335
Don't worry, just like said bobince that attribute name displays only in the IE8 developer tool. The real DOM attribute will be exactely the attribute you assigned.
Upvotes: 1
Reputation: 9428
This error only shows up in the IE8 developer tools (F12) - in the DOM the name attribute will still be correctly set. See this post for more.
Upvotes: 4
Reputation: 536419
Outputs this only in IE8....
How do you cause that to be ‘output’? Normally you only see propDescName
(and submitName
) when debugging the DOM in the developer tools. It is an internal detail of IE8-running-in-IE7-mode's implementation of the name
attribute, that should not normally be visible to scripts.
(Setting the name
attribute has notorious problems in IE up to version 7, so it's generally best avoided unless you really know what you're doing. In particular, though it correctly sets the ‘control name’ used to submit the field value, it won't affect radio-input grouping, frame targeting, or update the form
[.elements
] lookup.)
Upvotes: 0
Reputation: 449485
The name attribute you are assigning is invalid looks strange.
I think what you may really want to do is to use the actual variable value:
input.attr("name",exam.exam_Normal[normal_id_unique].boolean_v);
Provided that variable really exists in your script.
Upvotes: 1