newbie newbie - 1 year ago 112
jQuery Question

JQuery datepicker not working

Good day!

I am trying to use jquery for the first time. And i cannot make it work.
My code is as follows:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">

<html xmlns="" xml:lang="en" lang="en">
<link rel="stylesheet" type="text/css" href="style.css" media="screen" />
<script type="text/javascript" src=""></script>
$(function() {
$( "#datepicker" ).datepicker();
<div class="demo">
<p>Date: <input type="text" id="datepicker"></p>
</div><!-- End demo -->

But the datepicker is not working.. What should i do to make it work?
Thank you.

Answer Source

You did not include the datepicker library

so add

<script type="text/javascript" src=""></script>

to your <head>

live demo

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download