Skip to main content
8 events
when toggle format what by license comment
Nov 5, 2012 at 1:47 comment added Corbin This would fail if an element had more than one class. For example: <div class="cancel button"><div>. The className of that is cancel button which obviously does not equal cancel.
Nov 4, 2012 at 6:25 history edited ANeves CC BY-SA 3.0
Avoid using unnecessary jQuery ; removed old version of the code.
Nov 3, 2012 at 21:13 comment added jsanc623 @ANeves I'll take a +1 now that the code works :) and again, my apologies for writing incorrect code...never code sans sleep.
Nov 3, 2012 at 21:12 history edited jsanc623 CC BY-SA 3.0
Fixed code errors
Nov 3, 2012 at 20:59 comment added jsanc623 @ANeves: Sorry, was 4:30am here whenI wrote it. I'll correct it now.
Nov 3, 2012 at 18:57 comment added ANeves I fixed your selector. But -1: your code still does not work. You can't switch on the element and expect that the comparison will magically check the class of the element.
Nov 3, 2012 at 18:53 history edited ANeves CC BY-SA 3.0
fixed the selector
Nov 3, 2012 at 8:32 history answered jsanc623 CC BY-SA 3.0