JQuery need to clear a text box when clicking calendar button
I have a textbox with calendar button. Here my requirement is I need开发者_开发知识库 to clear the text box when user clicks Calendar Image control. Please provide JQuery for this.
Thanks in advance.
Well the simple answer is:
$("#calendarButton").click(function(){
$("#yourTextBoxId").val('');
});
But if you want a more detailed solution I would suggest you post some sample code.
精彩评论