Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Javascript working in jFiddle but not project! :( Reply To: Javascript working in jFiddle but not project! :(

#247903
Shikkediel
Participant

You sure it’s not because I left out the .live listener then? Best to change bubblebath to slow, it was just to demonstrate that any random (invalid) word would have the same effect – defaulting to toggle('slow'). Even toggle('') should actually work. You could also put in any number to define the duration. Currently it’s 600ms ('slow').

http://jsfiddle.net/s3mbx6kg/

Edit – I wrote that live was deprecated but it’s actually been removed since jQuery 1.9. So it’ll break any newer version…