How do I create a popup window when a form is submitted, only when a checkbox is checked?
I have this but it's not working
<script type="text/javascript">
var $jQ = jQuery.noConflict();
$jQ(function() {
$jQ(".mktoButtonWrap button").click(function(){
if(document.getElementById('signUpToPartnerEdge').checked){
event.preventDefault();
window.open("https://arubanetworkskb.secure.force.com/prm/PartnerApplication", "PopupWindow", "width=600,height=600,scrollbars=yes,resizable=no");
}else{ }
return false;
});
});
</script>
thanks