how to use jquery datepicker

Hello experts,

I am using this jquery datepicker.

and I need to grab the a single selected date in my ASP code. How do I do this? It's probably something simple that I just can't find.

<%response.Write "DatePicker: "&request.Form("#datepicker")&"<br>" %>

Open in new window

Who is Participating?
leakim971Connect With a Mentor PluritechnicianCommented:
use an hidden field to store the value for you :

<div id="datepicker"></div>
<input type="hidden" id="datepicker_value" name="datepicker" />

   onSelect: function(dateText, inst) { $("#datepicker_value").val( dateText ); }

check the onSelect event definition on this page :

Test page (the hidden field is replace by a textbox to let you see the value) :
   onSelect: function(dateText, inst) { $("#datepicker_value").val( dateText ); }
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.