i have this block of code. What I want is to get the values from form control formVal. How can I get those values like key-value pair?
alert(jQuery(".dateMasking").serialize());
var formVal = jQuery(".dateMasking").serialize();
alert(formVal['waitlist_opens']);
The first alert shows as: waitlist_opens=2015-03-10
, but the second alert doesn't show as expected: 2015-03-10