开发者

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);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜