Is it possible to somehow determine in javascript or using jQuery whether the change was made - by the user or by code?

  • Example of making changes by the user: the user clicked on the checkbox and set it to the state :checked - then the user made the change
  • Example code changes: $('#some-checkbox').prop('checked', true)
  • 3
    subscribe to the change event and check the isTrusted field of the event isTrusted - Grundy

1 answer 1

The most obvious option: track the mouse movement and hang the handler on onclick .