jQuery swapped image not loading

前端 未结 2 625
感情败类
感情败类 2021-01-28 16:25

I\'m trying to get an image to swap on the click event of a div class using jQuery .attr from the original image source location of \"Images/origImage\" to a new image source lo

2条回答
  •  别那么骄傲
    2021-01-28 16:58

    This should work in most browsers. Have you used Firebug or something like that to see if the browser is attempting to download the new image? Maybe there is something wrong with the URL (wrong location, not URL encoded, etc)...

提交回复
热议问题