Hi, first, i'm sory this problem is probably solved in somewhere in the net, but i don't have much time. Mi problem is this: I have links that it's href is only the hash( href="#id=123"). i need to do that because i need a direct acces to some artcles, etc. But when i attach the event click to the links, and i click them, don't happens anything. The hash of the URL changes, but the event doesn't trigger. My code is this:
HTML: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/ TR/html4/strict.dtd"> <html> <head> <link rel="Shortcut Icon" href="favicon.ico"> <link rel="stylesheet" href="styles/style.css"> <title>Title</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <script src="/js/jquery.js"></script> <script src="/js/functions.js"></script> </head> <body> <div id="header">Falling Leaves</div> <div id="Loading">Loading...</div> <div id="menuContainer"></div> <div id="content"> <div class="boxBottomLeft"></div> <div class="boxBottomRight"></div> </div> <div id="footer"></div> </body> </html> And the javascript is this. $(document).ready(function(){ $("a").click(function(){alert('asd')}); }); I've got no idea what can it be, i'm pretty newby to jquery. Thank you all