How to partially preventDefault ()?
Inside there is <label>an element <a href="#">. I would like to prevent the element's default behavior <a>(i.e. Navigation), but it should perform the element's default behavior <label>(i.e. Set a checkbox inside it).
Test case: http://jsfiddle.net/3M6WE/ . By clicking foo, check the box. Pressing bardoes not move, but does not toggle the checkbox.
How can I <a>not move the item but toggle this checkbox? I would like to avoid hacks, for example, toggle the checkbox manually. I am looking for "partially" preventDefaultif it is available.
+5