You are trying to attach an event to an element that is not yet displayed
you need to use ready onDOM
$(function() { $('#link').click(function(){ $('#form').validate(); if ($('#form').valid())
$(functionHandler) == $(document).ready(functionHandler);
Rule number 1 : always think that the DOM should be presented before the pix of the code you write is the most common mistake on this site ...
You can read this advice and much more on the jquery tag on this site, read it
source share