jQuery select element fail
This error in Firebug: missing ) after argument list
[Break On This Error] $('select >开发者_运维问答 option:contains('100')').attr('selected',true);
$('select > option:contains('100')').attr('selected',true);
No idea why?? i'm trying to set 100 as the selected option in a PHP built select element
$('select > option:contains(\'100\')').attr('selected',true);
精彩评论