Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

getting started with jquery datepicker [closed]

Im learning web programming and now i stuck with jquery datepicker. I need a full example/tutorial that consist of step-by-step guide how to :

  1. Display the jquery datepicker
  2. Use it
  3. Get the user input

I have done many searching but all i get is the tutorials about "how to modifiy it(with css)". I need a more beginner-friendly tutorial (im just getting started with jquery and AJAX, but i know standard javascript).

Thanks for your help :D

like image 321
Blaze Tama Avatar asked Mar 21 '13 10:03

Blaze Tama


1 Answers

You need an input field and then add the jQuery datepicker to it by calling the datepicker method:

 <input type="text" id="datepicker" />

 <script>
   $(function() {
     $("#datepicker").datepicker();
   });
 </script>

$(function() { } indicates that it will call the datepicker method and attach it to the HTML input control datepicker once the DOM has loaded.

http://jqueryui.com/datepicker/

like image 169
Darren Avatar answered Oct 20 '22 17:10

Darren