(function($) { // here $ would be point to jQuery object $(document).ready(function() { $('#pass').keyup( ... ); }); })(jQuery);