Are you including any other js files? Perhaps it's confused about $. Try a simple html file like this:
<html> <head> <script src="jquery-1.2.6.js"></script> <script> $(function(){ $("#elementID").click(function(){alert('clicked')}); }); </script> </head> <body> <div id="elementID">asdf</div> </body> </html> On Jan 23, 10:20 am, KidsKilla <kidski...@gmail.com> wrote: > Hi everyone! > I have a problem with binding events in jQuery. I didn't figured out > why, but when i'm tryin to bind a callback to links ( $(elm).click > (function() ), it doesn't works. but works fine with > elm.onclick = function() ... > > the same thing in 1.2.6 and 1.3.1, IE and FF... > > The question is: what can it be? it seems like an error with innerHTML > or somethng else, but I cant find out what happening...