jQuery日历无法正常工作 [英] jquery calender is not working

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

问题描述

我已经在Asp.net中创建了一个应用程序,其中必须使用jquery日历.为此,我搜索了很多jQuery示例.我有一个好的解决方案,我有一个网站
" http://keith-wood.name/datepick.html [
在一个简单的页面中,我尝试了它的正常运行,但是当我在项目中实现它时,它就无法正常工作.

我不知道该如何实现.

I have created an application in Asp.net in which I have to used jquery calender. for these I have searched lot of jQuery examples. I got one good solution for this i got one site
"http://keith-wood.name/datepick.html[^]" from here I took two JS and css files.

In a simple page I tried it works fine, but when I implemented this in my project it is not working.

I am not understanding how to implement this.

<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/MasterLogin.Master"
    AutoEventWireup="true" CodeBehind="testjquery.aspx.cs" Inherits="PresentationLayer.testjquery" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderCheckoutProcess"
    runat="server">

    <script type="text/javascript">
        $(function() {
            //	$.datepick.setDefaults({useThemeRoller: true});
            $(''#popupDatepicker'').datepick();
            $(''#inlineDatepicker'').datepick({ onSelect: showDate });
        });

        function showDate(date) {
            alert(''The date chosen is '' + date);
        }
</script>

    <script src="js/jquery.datepick.js" type="text/javascript"></script>

    <link href="css/jquery.datepick.css" rel="stylesheet" type="text/css" />

    <script src="js/jquery-1.3.2.js" type="text/javascript"></script>

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>

    <div>
        <p>
            A popup datepicker
            <input type="text" id="popupDatepicker"></p>
    </div>
</asp:Content>

推荐答案

(function(){ //
(function() { //


.datepick.setDefaults({useThemeRoller:true});
.datepick.setDefaults({useThemeRoller: true});


(''#popupDatepicker'').datepick();
(''#popupDatepicker'').datepick();


这篇关于jQuery日历无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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