Code :
$('#myLink').click(function (e) {
e.preventDefault();
...
if (someCondition) {
... code ...
} else {
... execute the link
}
});
I'd like, if someCondition
is false, execute the original href of the link (so, go that link, changing the page). Is it this possible?