Using this code: $('#ipadmenu section').attr('data-order', hash) I am settings the data-order attribute to the value of “hash”. How do I select elements with that attr/value instead of setting the value?
thank you for your help!
P.S. I am using zepto.js and .prop() is not supported
With the attribute selector.
$("#ipadmenu section[data-order='" + hash + "']")