I have created PHP GD image for captcha, file called image.php
each time it generates a dynamic captcha image.
In signup.php
I have
<img alt="" src="image.php">
<input type="button" id="btn" value="cant read captcha">
<!--btn is to load another captcha-->
jscript.js
$("#btn").click(function(){
$("img").attr('src','image.php');
});
Works in Chrome, Safari, and Opera but not in IE and Firefox.
How can I fix this or are there any alternative solutions?