Hey, can anyone tell me if there is something wrong with this code? <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> <script type="text/javascript"> var mraza = jQuery.noConflict(); </script> <script type="text/javascript" src="test.js"></script> PHP:
Works fine. What is the problem? <html> <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> <script type="text/javascript"> var mraza = jQuery.noConflict(); </script> <script type="text/javascript"> function hideText() { mraza("p").hide(); } </script> </head> <body> <p>This is a line of text</p> <button onclick="hideText()">Hide text</button> </body> </head> Code (markup):
Maybe in this code? http://pastebin.com/5EgxG4yN Works fine in firefox and chrome, but in IE it messes up the links. Firefox and chrome: IE: