JavaScript clashes

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lollol
    New Member
    • May 2012
    • 5

    JavaScript clashes

    I am using 2 different jquery. One for dropdown-menu and one is table sorter. They both work fine individually. But when i try to combine them together in a page, the whole page just get corrupted. What should i do?

    Code:
    <script src="javascript/jquery.js"></script>
    <script type="text/javascript" src="javascript/dropdown-menu.js"></script>
    <link rel="stylesheet" type="text/css" href="css/dropdownMenu.css" media="all"/>
    
    <script type="text/javascript">
        jQuery("document").ready(function() {
            jQuery("div#menu01").initMenu();
        });
    </script>
    Code:
    <link rel="stylesheet" href="css/style.css" type="text/css" />
    <script type="text/javascript" src="javascript/jquery-latest.js"></script> 
    <script type="text/javascript" src="javascript/jquery.tablesorter.js"></script> 
    
    <script>      
        $(document).ready(function() 
        { 
            $("#myTable").tablesorter(); 
        } 
    ); 	
    </script>
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    jQuery("documen t")
    I doubt that this is correct. there is no such element as <document> in HTML.

    Comment

    • lollol
      New Member
      • May 2012
      • 5

      #3
      Then what should i change?

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        remove the quotes, for instance?

        Comment

        Working...