Try this: $(function() { // your code goes here. });
Also while including the jquery file, write it as: <script type="text/javascript" src="jquery.js"></script> Check whether this helps. On Dec 10, 2:17 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > hi > > i have written jquery for a site; > after a while for sth that i don't know it don't work anymore > and direbug give an error like this: > > $("div#peik") is null > $("div#peik").hide(); > > and when i try to write > > $(document).ready() > > in firebug, it return : > > TypeError: $(document) is null > > whyyy is that? > pleeeas answer as soon as posible > thanks