Support pulling settings from data- attributes on the select. #28

Merged
merged 1 commit into from Sep 15, 2012

Conversation

Projects
None yet
2 participants
@benlumley
Contributor

benlumley commented Apr 25, 2012

Small time saver that I'm using - if you like, please merge.

It means you can pass the url and other options as data attributes on the select element.

Fairly small tweak to add support for passing args as data attributes on
the select.

eg:

<select data-url="http://callbackurl">

Works well/saves effort when the urls may change and so have to be parsed out of the
dom somehow.

meltingice added a commit that referenced this pull request Sep 15, 2012

@meltingice meltingice merged commit 7104884 into meltingice:master Sep 15, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment