<代码>。 FilterList是所有下级名单的类别名称。
var $lists = $( .FilterList[ctype=" + ctype + "] ).css( display , inline );
Something like the below works fine but I was wondering if there s a more concise and efficient method
I could use instead of the .each()
$lists.each(function () { $(this).attr( filterid ) == filterid ? $(this).val(thisval) : null; });
在我前面还有一点:
$lists.first( .FilterList[filterid = " + filterid + "] ).val(thisval);