using date picker
using date picker
I am trying to use jquery ui date picker. I want to open the date picker only when user clicks on the image next to input field , I followed the example it did not work , may be I am doing something wrong please help
here is the html
<!DOCTYPE html>
<html>
<head>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<script>
$(document).ready(function() {
$(".datepicker").datepicker({showButtonPanel: true,closeText: 'X',buttonImage: 'calendar.gif' });
});
</script>
</head>
<body style="font-size:62.5%;">
<input type="text" class="datepicker"/>
<br>
<input type="text" class="datepicker"/>
</body>
</html>
I want the calendar img to be displayed next to input filed and when user clicks on the calendar icon popup calendar should open .
here is the link for datepicker api
http://docs.jquery.com/UI/API/1.8/Datepicker#options
please help me.
Topic Participants
fachhoch
kbwood.au