如何仅在单击图像时弹出日历,而不在文本框焦点上弹出日历? [英] How can I popup calendar only on image click but not on Textbox focus?
本文介绍了如何仅在单击图像时弹出日历,而不在文本框焦点上弹出日历?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我从这里链接 [
I use the Jquery from here Link [^]i tried all possible cases as per shown in the document for not popping-up the calendar on textbox but i could not stop it. So can any one help me on this to have a calendar pop-up only on clicking image available.
This is what i tried
<script type="text/javascript">
$(function() {
$('#ctl00_ContentPlaceHolder1_TextBox2').datepick({
showOn: 'button',
buttonImage: 'calendar.gif',
buttonImageOnly: true,
changeMonth: true,
changeYear: true,
showAnim: 'slideDown',
duration: 'fast'
});
});
</script>
我想要的是在单击图像时加载日历,并且当我将光标放在Textbox
What I want is to load calendar on image click and should not be focused when i have a cursor on Textbox
推荐答案
(函数(){
(' #ctl00_ContentPlaceHolder1_TextBox2').datepick({ showOn:' 按钮', buttonImage:' calendar.gif', buttonImageOnly: true , changeMonth: true , changeYear: true , showAnim:' slideDown', 持续时间:' 快速' }); }); </script>
('#ctl00_ContentPlaceHolder1_TextBox2').datepick({ showOn: 'button', buttonImage: 'calendar.gif', buttonImageOnly: true, changeMonth: true, changeYear: true, showAnim: 'slideDown', duration: 'fast' }); }); </script>
我想要的是在单击图像时加载日历,并且当我将光标放在文本框上时不应该聚焦
What I want is to load calendar on image click and should not be focused when i have a cursor on Textbox
仅在单击可用图像时才弹出日历
更改此行:
this to have a calendar pop-up only on clicking image available
Change this line:
这篇关于如何仅在单击图像时弹出日历,而不在文本框焦点上弹出日历?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文