由於某種原因,我無法在IE8下使用它。在Chrome中運行良好。jQuery * =選擇器不能在IE8中工作
這就是我要尋找的元素:
<input type="text" captures_name="default" name="firstname" required="S01 S02"/>
這個jQuery的(1.9.1)我使用:
$("input[captures_name='default'][name='firstname']") //Match
$("input[captures_name='default'][required*='S01']") //Does Not Match
$("input[captures_name='default'][required*='S02']") //Does Not Match
$("input[captures_name='default'][required='S01 S02']") //Does Not Match
我希望能夠找到基於元素required
屬性中的單個值。我確信我只是在看東西......有人能借給我一雙眼睛嗎?
在此先感謝您的幫助
Is'nt HTML5中的'required'屬性是一個布爾屬性? – adeneo 2013-03-19 18:13:04