0

How can I prevent the click event from firing, if the click was on a checkbox?

I mean, when I click in the text area, I'd like to handle that but when the checkbox is being clicked, I don't want that click code to fire.

ycomp
  • 8,316
  • 19
  • 57
  • 95
  • either remove the event handler code for that particular event or code your own pre / post action checks do you have existing code to show what you have and the issues you are currently facing...? – MethodMan Nov 11 '14 at 22:34

1 Answers1

0

You can remove the delegate from the delegate list like this

Alternativement (and probably more safely) you can simply wrap the on click event in a if and prevent the code from executing under some circumstances.

Community
  • 1
  • 1
Eric
  • 19,525
  • 19
  • 84
  • 147