I have the following jquery function
$("#photographers_password_confirm").focusout(function() {
alert('bla')
if( $("#photographers_password") != $("photographers_password_confirm") ){
$("#photographers_password_error").slideDown();
}else{
$("#photographers_password_error").hide();
}
});
it works fine in the firebug console but when I put it in the page it fails to work but it also doesnt return any error in the firebug console. what am I doing wrong?