Reputation: 69
I know about jquery "date-picker" but cant understand how to implement it.
Id like to use it on a html form inside a table.
one of my fields for the form is
"<tr><td>Name: </td> <td><input type='text' id='name'/> </td> </tr>" +
Id like a similar one but for date input.
Upvotes: 0
Views: 340
Reputation: 150313
Can't really understand where did you stuck in because you didn't show any code of your attempts but this is how it's being done:
$(function() {
$("#name").datepicker();
});
Don't forget to include the css
and js
files:
<link rel="stylesheet" href="http://code.jquery.com/ui/1.8.18/themes/base/jquery-ui.css" type="text/css" media="all" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
<script src="http://code.jquery.com/ui/1.8.18/jquery-ui.min.js" type="text/javascript"></script>
Upvotes: 3