[英]attribute!='value' jquery selection doesn't work in IE
我有一個jQuery( "[attribute!='value']" )
jQuery選擇,它在除IE之外的所有瀏覽器中都有效。我也嘗試過.not .not( "[name='value']" )
但是沒有運氣。
JS:
$("input[type=file]").not("[name='photo_1']").parents('.fileinput-wrapper').find(".label").remove();
我該怎么辦?
編輯:
$("input[name!='photo_1']").parents('.fileinput-wrapper').find(".label").remove();
我認為.filter
可能是這里的答案:
$("input[type='file']").filter(function(){
if($(this).attr('name') != 'photo_1'){
return true;
}
return false;
}).parents('.fileinput-wrapper').find(".label").remove();
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.