<a href="#" type="image" class="topopup" onclick="ShowDIV3();" >Click Here</a>
In this code I need to execute another one function like validation if that function is true only the next function should run otherwise it won't be run. Can any one help me?
Try this code :
<a href="#" type="image" class="topopup" onclick="if (ShowDIV3()) {myotherfunction()}">Click Here</a>
Try like
<a href="#" type="image" class="topopup" onclick="ShowDIV3();" >Click Here</a>
function ShowDIV3() {
if(true) //Here can use condition for validation
another_fun();
else
return false;
}
call your another function when the condition is true at your showDIV3 function
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With