datepicker with button click
Hello,
on a form there is a button "Deadline" I want to show the datepicker if you click on the button.
- <input name="deadline_button" id="txt_deadline_button" type="button" class="button" />
Then if calendar is visible and date is selected, the date should be showed in table column (or in a different textbox)
I tried this code below:
- $('#deadline_button').datepicker({
onSelect: function(date) {
$('.Tabletd5').html(date);
$('#deadline_button').html('');
}
});
It works fine but the problem is that the date is also be shown on the button itself.
I tried to remove this with:
$('#deadline_button').html('');
but this take no effect.
can anyone help me?
thanks
regards