当光标放在文本框中时,日期选择器不出现 [英] date picker not appearing when cursor is put in textbox

查看:120
本文介绍了当光标放在文本框中时,日期选择器不出现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

绿色被点击时,我有两个日期选择器,但是当我将鼠标光标放在这两个文本框上时,不会出现,只有点击 image / green color 日期选择器出现。我应该做什么修改?

I have two date pickers appearing when green color is clicked, but when i am putting mouse cursor on those two text boxes, then nothing appears, only after clicking image/green color date picker is appearing. What modification should i do?

在下面的小提琴中,当光标放置时,自动选择器出现:

In this below fiddle automatically date picker is appearing when cursor is put:

http://jsfiddle.net/cBwEK/

我想在下面的小提琴中添加上面的功能:

I want to add the above function in below fiddle:

http://jsbin.com/unosar/19/edit#javascript,html,live

我正在尝试,但是什么都没发生。任何解决方案请

I am trying but nothing happens. Any solution please

编辑:以上两个示例使用相同的css / js / mootools SCRIPTS

推荐答案

这两个例子中的代码是不同的。尝试设置一个更像您的真实代码的示例。在第二个例子中尝试做同样的事情:

The code in the two examples are different. Try to set up an example that is more like your real code. Try to do the same thing in the 2nd example:

new DatePicker('.picker', {
     pickerClass: 'picker ',
    allowEmpty: true
});

这篇关于当光标放在文本框中时,日期选择器不出现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆