How can i delete all classes "green" in the page using jQuery? I don't know what selector it has. find('.green').removeClass('green')
does not work.
views:
65answers:
1Boo. Beat by 11 seconds.
Paolo Bergantino
2009-08-20 11:52:54
Actually, 10 seconds. Ah the pain.
Paolo Bergantino
2009-08-20 11:53:25
I've won you this time! :)
Jonathan Sampson
2009-08-20 11:53:34
ditto - but even later
redsquare
2009-08-20 11:54:22
jon - do you get an early warning signal of a new jq question;)
redsquare
2009-08-20 11:54:52
@Redsquare I wish :) I just get lucky from time to time.
Jonathan Sampson
2009-08-20 11:55:11
+1 Aaah beat me to it by 3 minutes. If none of you guys were online I would have got this! See -> $(".green").removeClass("green");
karim79
2009-08-20 11:56:49
Quick, Karim79, Paolo, Redsquare and I better disperse before we cause a jQuery gravity-well on Stackoverflow!
Jonathan Sampson
2009-08-20 12:00:26
11 minutes :-(
Daniel Moura
2009-08-20 12:05:05