I have a link:
Link
using::
$('#myID').click(function(){
if($("#myCheckbox").is(":checked")) {
alert('Yes it is...'); //continue as normal
}
else {
alert('Not checked');
//exit do not follow the link
}
...
so is //exit do not follow the link possible?
Try using
event.preventDefault()