0
,我需要选择和更改其中有一类heruyeresmi
和src http://www.example.org
的jQuery - 选择多个不同的选择
试过这种没有任何的运气
$(".heruyeresmi,['src'='http://www.example.org']").attr("src","http://www.example.com");
一个div的SRC什么是正确的如何做到这一点?
,我需要选择和更改其中有一类heruyeresmi
和src http://www.example.org
的jQuery - 选择多个不同的选择
试过这种没有任何的运气
$(".heruyeresmi,['src'='http://www.example.org']").attr("src","http://www.example.com");
一个div的SRC什么是正确的如何做到这一点?
删除在选择逗号和引号包围属性名称
$(".heruyeresmi[src='http://www.example.org']")
'$( “.heruyeresmi [SRC = 'HTTP://www.example.org']”)',除去','它表示多选择器https://api.jquery.com/multiple-selector/ – Satpal
'div'不应该具有'src'属性。你的意思是select元素的'src'属性的值设置为'“http://www.example.org”,它是'.heruyeresmi''的一个子元素''(“。heruyeresmi [src ='http:/ /www.example.org']“)'? – guest271314
没有它的实际图像。 –