$(\'.ajax\').click ( function() { // If been bound then we need to return here. alert(\':D\'); } ) $(\'.ajax\').click (
try unbinding it before binding:
$(".ajax").unbind("click").click( function () { alert("Hello"); } );
read this for some more information.