how to insert date in table by using datepicker jquery?

my jquery code is as:

 <script language="JavaScript" type="text/javascript">
        $(function() {
            $( "#date" ).datepicker();
        });
    </script> 

in html

<tr colspan="2">
<td valign="top" align="left">
Date<font color="red">*</font></td>
<td valign="top" align="left">
<input type="text" id="date" name="date" value="" readonly="readonly" autocomplete="off" size="20">
</td></tr>

Recommended Answers

All 4 Replies

Try this:

 <script>
$(function() {
$( "#datepicker" ).datepicker();
});
</script>



<input class="input" name="date" type="text" id="datepicker">

Also, remove readonly

Thank u for support. I had solved it. Thank u so much

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.