JQuery日历控件 [英] JQuery Calender control

查看:52
本文介绍了JQuery日历控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我使用jquery进行日历控制,月份和年份下降。以下是我在UI表单中的代码:

 < script     src   =  http:// ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js\"   type   =  text / javascript >  < /   script  >  
< script src = http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min .js

type = text / javascript > < / script >
< link href = http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css
rel = 样式表 type = text / css />

< style type = text / css >
.ui-datepicker
{
font-size:9pt!important;
}
< / style >

< script type = text / javascript >
$(function(){
$( [id $ = txtDateSSMA])。datepicker({
changeMonth: true
changeYear: true
yearRange:' 1900:2020'
已选择: true
});

});
< / script >



但它没有在UI中显示任何弹出日历。这个在野生动物园工作得很好。但不是在IE,FF和Chrome中。请给出解决方案来解决这个问题



谢谢

Prasaanth K

解决方案

< blockquote>(function(){


[id


= txtDateSSMA])。datepicker({
changeMonth: true
changeYear: true
yearRange:' 1900:2020'
已选择: true
});

});
< / script >



但它没有在UI中显示任何弹出日历。这个在野生动物园工作得很好。但不是在IE,FF和Chrome中。请给出解决方案来解决这个问题



谢谢

Prasaanth K


Hi,
I used jquery for calender control with month and year drop downs. Following is my code in UI form:

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js" type="text/javascript"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"

    type="text/javascript"></script>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css"
    rel="Stylesheet" type="text/css" />

<style type="text/css">
    .ui-datepicker
    {
        font-size: 9pt !important;
    }
</style>

<script type="text/javascript">
    $(function () {
        $("[id$=txtDateSSMA]").datepicker({
            changeMonth: true,
            changeYear: true,
            yearRange: '1900:2020',
            Selected: true
        });

      });
</script>


But it did not show any popup calender in UI. This one is working fine in safari. But not in IE, FF and Chrome. Please give solution to resolve this problem

Thank you
Prasaanth K

解决方案

(function () {


("[id


=txtDateSSMA]").datepicker({ changeMonth: true, changeYear: true, yearRange: '1900:2020', Selected: true }); }); </script>


But it did not show any popup calender in UI. This one is working fine in safari. But not in IE, FF and Chrome. Please give solution to resolve this problem

Thank you
Prasaanth K


这篇关于JQuery日历控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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