How adding <input> in each <td> in datepicker by clicking
Hello.
How can I realize the following:
I want by clicking on the
<td></td> with
'date',
<input> with value =
'date'
was inserted
between <td></td>?
Its possible with datepicker UI?
How I have this:
- <div id="datepicker"></div>
- <input id="input">
- <script type = "text/javascript">
- $(function() {
- $("#datepicker").datepicker({dateFormat: 'mm/dd/yy', altField: '#input'});
- $("#datepicker").change(function() {
- var date = $(this).datepicker("getDate");
- $("#input").attr('value', date);
- });
- });
- </script>