When the user click on the image store a boolean value to some hidden text box. if the user click second time check the hidden text box boolean condition.
Based on the above validation, you can avoid the second click on the submit button.
<script language=javascript>
var s="1s4";
alert(isCurrency(s));
function isCurrency(pInput) {
var re = /^\$?[0123456789\.-]+$/;
return re.test(pInput);
}
</script>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.