Hi I was wondering if someone could give me a hand with how exactly data-* works... I need to create a custom attribute which will be accessed with jquery...
heres what i got so far:
HTML
<select name='province' class='province' data-IsSelectSingle='true'> ... etc ...
jQuery
if($.data("IsSelectSingle") != "true")
and even though its true it executes still... ive also tried...
if($.data($(".province"), "IsSelectSingle") != "true")
Figured I'd try that since thats what it shows as the method on the jquery site but it doesn't seem to work either... any ideas why this might be?
Thanks in advance!