I want to show a datepicker only on button click
<input type="button" id=day value="day" />
$("#day").datepicker();
the above line fills the button text with the selected date
I have also tried with below code but nothing happens
$("#day").click(function() {
$("#hiddenField").datepicker('show');
});
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…