Internet Explorer does not like my Jquery selector. Not sure if it’s my weak Jquery
skills or general Explorer strangeness.
Here is the Code:
$("#field_"+index+" #field_Label").val();
[div field_1]
<input id="field_Label" //... you get the picture.
to explain this.. I have a DIV labeled field_1, field_2.. etc..
Internet explorer appears to find the first iteration, but cannot
find the second.
Thank you all, and thanks to you stackoverflow.
Is there a better way I should be doing this ?..
Here is a more complete snippet:
<li id="blank">
<div id="field_1" style="background: #BDCFFF; color: #1028BD;margin: 10px; border: 1px solid black;width: 400px; height: 100px;">
<table>
<tr><td>Label:</td><td><input class="field_Label" id="field_Label" type="text"/></td></tr>
<tr><td>Type:</td><td><input id="field_Type" type="text" value="2"/></td></tr>
<tr><td>Id:</td><td><input id="idField" type="text" value="0"/></td></tr>
</table>
</div>
Change #field_Label to .field_Label and then access
Without a space beween the values, so the output would be #field_1.field_Label – (Ie likes specifics)