My DOM looks like this:
16条回答 后悔当初 (楼主) 2020-11-22 02:20 You can also do this with jQuery in this way: $(".c1 img").click(function(){ $(this).attr('src','/new/image/src.jpg'); }); You can have a condition if there are multiple states for the image source. 0 讨论(0) 查看其它16个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
You can also do this with jQuery in this way:
$(".c1 img").click(function(){ $(this).attr('src','/new/image/src.jpg'); });
You can have a condition if there are multiple states for the image source.