Search code examples
jqueryhtmlcsssuperfish

Multiple instance of superfish?


Can I get two instances of superfish running on one HTML page? I am not using a CMS, just straight HTML, CSS and JavaScript. I'd imagine it has something to do with editing the superfish.css file, but I couldn't figure it out.


Solution

  • Yes you can, all you have to do is give them separate ID's and initialize them like so:

    $("#menu-1, #menu-2").superfish();