- using defer, eval and more…(next/prev page)
- jQuery: avoid .xxx or try to narrow it down ‘#my-form input.my-class’
Category Archives: JS
JS Explained – You Think You Know Javascript ?
Do you know why
- NaN !== NaN
- parseInt(’08’) != parseInt(’08’,10)
- Boolean(0) != Boolean(‘0’)
- ‘a’.length is not always 1
Do you know
- CSS as far up as possible
- JS as far down as possible inside body
- Bubbeling and cancelBubble()
or just
Too small checkboxes
I recently got fed up with hunting down these small checkboxes, where you can only click the checkbox and not the label.
Most of the time it works (but not in IE) by wrapping the checkbox into the label, but not in my recent case.
So i wrote up a small jQuery plugin to rescue the day! (works with this basic case and some more advanced placements)