Skip to main content
Inspiring
December 11, 2012
Question

jquery for calendar picker

  • December 11, 2012
  • 1 reply
  • 730 views

Hi,

I have coldufusion 7 and can't use the datafield type for input field.  Instead, i want the pop up calendar for user to pick the date.  I've search from the web and they talked about jquery but do'n't know about this.  I did see some code but don't know how to call in cfm page.  Can any one please walk me through this?

thanks

kt

This topic has been closed for replies.

1 reply

BKBK
Community Expert
Community Expert
December 13, 2012

Google jQuery datepicker. You will get plenty of examples like

<html>

<head>

    <title>jQuery Datepicker</title>

    <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css" />

    <script src="http://code.jquery.com/jquery-1.8.3.js"></script>

    <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>

    <script>

    $(function() {

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

    });

    </script>

</head>

<body>

<form>

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

</form>

</body>

</html>

I would suggest you download the scripts jquery-ui.css, jquery-1.8.3.js and jquery-ui.js, and let your code refer instead to URLs on your site.