2 Replies - 992 Views - Last Post: 27 March 2012 - 03:06 PM

#1 siva23091304@gmail.com  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 05-March 12

Problem with JQuery Datepicker

Posted 21 March 2012 - 12:53 AM

Dear All,

I have trying to access JQuery Datepicker.

But its showing the functionalities in plain format.

I m not getting where i need to do modifications.

Please find the code below & google it for .js files.

& let me know where i need to do modifications

<head>
	<title>jQuery UI Datepicker - Default functionality</title>
	<link rel="stylesheet" href="Styles/jquery.ui.all.css">
	<link rel="stylesheet" href="Styles/demos.css">
	<script type="text/javascript" src="Scripts/jquery-1.7.1.js"></script>
	<script type="text/javascript" src="Scripts/jquery.ui.core.js"></script>
	<script type="text/javascript" src="Scripts/jquery.ui.widget.js"></script>
	<script type="text/javascript" src="Scripts/jquery.ui.datepicker.js"></script>
	<script type="text/javascript">
	    $(function() {
	        $("#datepicker").datepicker();
	    });
	</script>
</head>
<body>

<div class="demo">

<p>Date: <input type="text" id="datepicker"></p>

</div><!-- End demo -->

</body>


Is This A Good Question/Topic? 0
  • +

Replies To: Problem with JQuery Datepicker

#2 BobRodes  Icon User is offline

  • Your Friendly Local Curmudgeon
  • member icon

Reputation: 572
  • View blog
  • Posts: 2,985
  • Joined: 19-May 09

Re: Problem with JQuery Datepicker

Posted 27 March 2012 - 01:13 PM

Here's a sample of some stuff that worked for me:
    $('#datepicker').datepicker({
        dateFormat: 'm/d/yy',
        numberOfMonths: 1,
        onselect: function () {
            //put stuff that you want to do when the user selects a date here
        }
        onClose: function () {
            $(this).focus();  //default focus on close is somewhere in the browser menu
        }
    });
You put your configuration parameters as arguments to the datepicker function. You can find any number of other configuration variables in the doc for datepicker.

This post has been edited by Atli: 27 March 2012 - 03:04 PM
Reason for edit:: Fixed the code tags.

Was This Post Helpful? 0
  • +
  • -

#3 Atli  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 3710
  • View blog
  • Posts: 5,958
  • Joined: 08-June 10

Re: Problem with JQuery Datepicker

Posted 27 March 2012 - 03:06 PM

* Moved to the jQuery forums. *
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1