I have a form with a data-attribute:
<form data-test="true"></form>
I'm trying to target it using:
var form = $('form').data('test');
but when I log out form it just returns True and not the jquery object I was expecting.
I have a form with a data-attribute:
<form data-test="true"></form>
I'm trying to target it using:
var form = $('form').data('test');
but when I log out form it just returns True and not the jquery object I was expecting.