开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜