newbie newbie - 2 months ago 5x
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.


You did not include the datepicker library

so add

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

to your <head>

live demo