Friday, September 21, 2012

find the nth-numbered element in a swath of HTML with jQuery

var detail16a = $(formtablerows[16]).find("select:eq(0)");
var detail16b = $(formtablerows[16]).find("select:eq(1)");
$(detail16a).attr('style', 'display: none !important;');
$(detail16b).attr('style', 'display: none !important;');

No comments:

Post a Comment