I have a table with a row. The line has TD (with a flag in it), and on TD I have a click function. So when TD is pressed, the checkbox will be checked / unchecked.
It works fine when I click on TD, but when I click on the checkbox (visual) the value of the checkbox does not change (it is not checked / not checked)
Required Situation:
When I click this checkbox, the (visual) value of the checkbox changes, and I can call a function (for example, to call AJAX)
When I click on TD, the (visual) value of the checkbox changes, and I can call the function. (e.g. to call AJAX)
How can we achieve this?
Code example
source
share