You need to sign in to do that
Don't have an account?
Java Script Alert Issue in Internet Explorer
Hello All,
Below java Script code is working fine in all browsers. But this is not working in IE.
Please anyone give an immediate response.
This is Java Script code on VF Page
function checkAcknowledgement(){
if (acknowledgement.checked == false){
alert('Please read Agreement and Terms.');
return false;
}else {
return true;
}
}
This is input tag in the VF page where i used the above Java Script.
<input type="checkbox" id="acknowledgement" name="ack" /> I agree to these terms <apex:commandLink value="View" style="color:red;" onclick="check1();return false;" /> </td> (This is check box.)
<apex:outputText rendered="{!boolimg}"><apex:commandLink action="{!insertPayInfo}" id="theCommandLink2" onclick="return checkAcknowledgement(this)" > <apex:image value="{!$Resource.PayNow}" /></apex:commandLink></apex:outputText> (This is Command Button. When i click this button it should give java script alert pop up, if the checkbox is not checked)
Thanks,
Uday
Hey,
You need to change your javascript function to this:
Ive tested and it works :)
Cheers