Patrioticcow
Patrioticcow

Reputation: 27058

jquery how to unload or hide javascript?

i have a jquery script. see fiddle here, that loads some scripts depending on what option i select.

there are a few problems.

  1. I cant make the js unload/hide when the other option is selected (what if i have more options?)

  2. and the script doesnt load inside #feed-1307038796890991 but next to it.. wired

any help much appreciated. Thanks

Upvotes: 0

Views: 181

Answers (1)

Eric
Eric

Reputation: 97631

Here's a better attempt:

http://jsfiddle.net/Eric/vLzCU/7/

I really can't see what was going through your head when you wrote the code. Why are there two single element arrays? And why are you using a variable to index them?

Upvotes: 1

Related Questions