Posted on: 10/9/2014 3:41:41 PM | Views : 372

Hi,
I have written a code for captcha validation and disclaimer, but it is not working. Please see the code for your reference:-
$(document).ready(function () { NRI_ReferFriend.init(); $('#btnSubmit').on('click', function (e) { if (NRI_ReferFriend.ValidatePage()) { if ($('#chkDisclaimer').is(':checked')) { var captcha = $('input[name="CaptchaControl1"]').val(); if (captcha != '') { return false; } alert("Please enter captcha text."); //$('#lblcaptchaerror').text('Please enter captcha.'); } else { alert('Please accept the terms and conditions'); } } return false; ...

Go to the complete details ...