Skip to content
This repository was archived by the owner on Mar 17, 2018. It is now read-only.

Add change events when value changes#1

Open
bryanburgers wants to merge 1 commit intopixelandtonic:masterfrom
bryanburgers:patch-1
Open

Add change events when value changes#1
bryanburgers wants to merge 1 commit intopixelandtonic:masterfrom
bryanburgers:patch-1

Conversation

@bryanburgers
Copy link

Make is possible to watch a P&T Switch for changes. The change event requires an actual browser event initiated by the user instead of via javascript code. By adding .trigger('change'), it makes it possible to watch the underlying select for changes.

http://stackoverflow.com/questions/4672505/why-does-the-jquery-change-event-not-trigger-when-i-set-the-value-of-a-select-us

Make is possible to watch a P&T Switch for changes. The `change` event requires an actual browser event initiated by the user instead of via javascript code. By adding `.trigger('change')`, it makes it possible to watch the underlying `select` for changes.

http://stackoverflow.com/questions/4672505/why-does-the-jquery-change-event-not-trigger-when-i-set-the-value-of-a-select-us
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant