【发布时间】:2011-06-08 09:49:39
【问题描述】:
点击锚点时,有没有办法在两个值之间切换图像的 src 属性?
像这样:
$('a#some-anchor').click(function() {
// code here that toggles between two image src's e.g. "images/some-image1.jpg" and "images/some-image2.jpg"
});
【问题讨论】:
标签: javascript jquery