I'm testing with IE8. I just upgraded jQuery from v1.5.2 to v1.6.1 and now the data method isn't working.
the row look like this:
<tr class="ui-widget-content alt" nodeIndex="2" data-DocAttributeFieldType="TextBox" data-DocClassAttributeFieldId="60777" jQuery16106588245076914028="66">
this works:
$("#docClassAttributeFields tbody tr:first").attr("data-DocClassAttributeFieldId");
this does not work:
$("#docClassAttributeFields tbody tr:first").data("DocClassAttributeFieldId");
Is there a bug in it?
Here is an example. Run it with in 1.5.2 and then 1.6 to see how they act differently...
http://jsfiddle.net/5hbKX/
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…