I have img
<img src="captcha.jpg" id="my-image"/>
and jQuery script for change captcha image
<script>
$(document).ready($("#my-image").click(function(){
$('#my-image').attr('src', "captcha.jpg");
alert('adfgf');
}));
</script>
when i click to image triggered image change and call alert in chrome. But in Firefox and in IE alert is called but image not changed. How fix it?
EDIT
@RequestMapping(value = "/captcha.jpg", method = RequestMethod.GET)
public void captcha(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
super.captcha(req, resp);
}