Hi,
I have script for a pulldown menu where the option create another pulldown menu. But how can I adapt this code so that another pulldown menu is created from the second.
Here is the code that I am working from,
Hi Pullo
Thanks for this, it is exactly what I am looking for.
I don’t like that it depends on an external link for the jQuery library.
I’ve never used jQuery before or in fact Javascript.
Thanks for the post, I really appreciate it,
Shane
jQuery is a small JavaScript library which makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
Fair enough, but gzipped and minified the library is only 77.42 KB in size (ref). Also if you include it from the Google CDN, the chances are the library is already cached on a user’s system anyway.
I was listening to a 2014 podcast some time back (with Chris Coyier and some JS wizz) and they were saying that the latest advice is to link to it locally. Darned if I can remember why, though. I think one of the reasons was that there are lots of different versions floating around etc. etc. but I can’t remember what the main reason was. (Thought I had a link somewhere, but can’t find it.) Pretty sure it was ShopTalk, anyhow.
I’d be interested to hear that.
As far as I was aware, CDN was the better way, but having just spent a while Googling the subject, there seem to be a number of pros and cons to each approach.
Chris Coiyer was sAying on his own blog here that both CDN and local each have their own benefits, so load first from the CDN, then check if it loaded and get it locally if that failed.