Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is .data() supported similarly to jQuery? #16

Closed
klihelp opened this issue Feb 16, 2015 · 3 comments
Closed

Is .data() supported similarly to jQuery? #16

klihelp opened this issue Feb 16, 2015 · 3 comments

Comments

@klihelp
Copy link

klihelp commented Feb 16, 2015

Is it possible to request/save data to an element?

@kylebarrow
Copy link
Owner

No, I've been using .attr to read/write data values. If you think .data would help though, let me know.

@klihelp
Copy link
Author

klihelp commented Feb 17, 2015

it would be helpful, as you could use simple if ( $el.data('example') ) {} and set data $el.data('example','value')

@kylebarrow
Copy link
Owner

@klihelp I've added a data method to 3.0.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants