开发者

JQuery need to clear a text box when clicking calendar button

开发者 https://www.devze.com 2023-01-20 01:47 出处:网络
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.

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

精彩评论

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