Author Topic: onclick function?  (Read 3131 times)

fred

  • Newbie
  • *
  • Posts: 5
    • View Profile
onclick function?
« on: November 08, 2016, 07:45:54 pm »
Hi,

Is there a function that would allow me to detect when an option is selected and deselected
The plugin examples show the `onchange` function working but it does not detect when a checkbox is unselected.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6282
    • View Profile
Re: onclick function?
« Reply #1 on: November 10, 2016, 12:49:03 pm »
When a checkbox is selected or unselected, it leads to change in value which can be detected in on('change', function(){} )

Example: http://jsfiddle.net/dLvx6u63/10/