Im trying to select a radio box when I click an LI. But i get the error \"to much recursion\".
Code is:
$(\'li\').click( function(){ $(\'li.sele
when you .click() the child input, the event bubbles up and re-triggers the li's click(). You need to add a .click() to the input and do event.preventBubble=true; in it, or else just set the checked property instead of click()ing it.
input
li
event.preventBubble=true;
click()