Reputation: 21
I'd like to get the date value from a variable of type jquery Datepicker for instance:
var dp = $("#datepicker")datepicker();
How should I get my "getDate" value from my dp variable?
Upvotes: 1
Views: 79
Reputation: 115212
The datepicker()
returns the reference of the jQuery element so you can use getDate
method to get the date.
dp.datepicker('getDate')
Upvotes: 1