hi, i have the following code:
$(function() { $('.error').hide(); $('input.text-input').css({ backgroundColor:"#FFFFFF" }); $('input.text-input').focus(function(){ $(this).css({ backgroundColor:"#FFDDAA" }); }); }); .... .... .... }); it works fine with the form on in index.php,which its not loaded using ajax, but whe i load another form using ajax, those events stop working. is there a way to have global events so that every form, whether its loaded using ajax or not, can use them??