如何使用现有脚本添加日期选择器? [英] how to Add a date picker with existing script?
本文介绍了如何使用现有脚本添加日期选择器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的jquery代码是:
< script type = text / javascript src = Scripts / jquery-1.4.2.min.js >
< / script >
< script type = text / javascript >
$(function(){
$('input:text:first')。focus();
var $ inp = $('。cls');
$ inp.bind('keydown',function(e){
var key = e.which;
if(key == 13){
e.preventDefault();
var nxtIdx = $ inp.index(this)+ 1;
$(。cls:eq( + nxtIdx +))。focus();
}
});
});
< / script >
如果我想用它添加日期选择器。我可以添加吗?
解决方案
(function(){
< blockquote>('input:text:first')。focus();
var
inp =
My jquery code is :
<script type="text/javascript" src="Scripts/jquery-1.4.2.min.js" >
</script>
<script type="text/javascript">
$(function () {
$('input:text:first').focus();
var $inp = $('.cls');
$inp.bind('keydown', function (e) {
var key = e.which;
if (key == 13) {
e.preventDefault();
var nxtIdx = $inp.index(this) + 1;
$(".cls:eq(" + nxtIdx + ")").focus();
}
});
});
</script>
if i want to add a date picker with it.how can i add?
解决方案
(function () {
('input:text:first').focus(); var
inp =
这篇关于如何使用现有脚本添加日期选择器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文