Jump to content

Jquery date picker

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
welton122

welton122

    Learning Programmer

  • Members
  • PipPipPip
  • 76 posts
hi all,

okay i think this will be an easy post, but i am wanting to make use of the jquery date picker but i cannot get the code to work. This is exact date picker i want and how i want it to work (jQuery UI - Datepicker Demos & Documentation), can anyone help me with the code to get this to work, so far i have put this:

<script>

	$(function() {

		$( "#datepicker" ).datepicker();

	});

	</script>


<form action="index.php" method="POST">

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

</form>

Is there anymore code needed, with my other jquery files i have needed an extra jquery file for this to work, is this needed here???

Many Thanks,
J

#2
gokuajmes

gokuajmes

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 518 posts
Well try this Kid,
<head>
    <title>Test Page</title>
 <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/cupertino/jquery-ui.css" type="text/css" />
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.5/jquery-ui.min.js"></script>

    <script type="text/javascript">
    $(function() {
        $("#date").datepicker();
    });
    </script>
</head>
<body>
    <div id="date">
    </div>
</body>
</html>

it is not essential that you need to show a textbox for DatePicker to appear.
btw you might be interested in jqueryUI tutorials from over here
http://deeptechtons.net/
and also
http://labs.deeptechtons.net/


#3
gokuajmes

gokuajmes

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 518 posts
So did wellton get the thing working, we need you to reply back