I am using simpleCaptcha library to display captcha using servlet. requirement is to refresh the captcha if refresh button is pressed.
<h:graphicImage value="/img/refresh-s.png" onclick="changeCaptcha()" />
$('myCaptcha').attr('src', '/RoyalCourtPortal-portlet/simpleImg' );
Please while answering provide code example as I am very new with javascirpt.
Thanks in advance
This topic has been locked.