ptTimeSelect JQuery的TimePicker插件的问题 [英] ptTimeSelect JQuery TimePicker plugin issue

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

问题描述

我试图使用jQuery插件ptTimeSelect http://pttimeselect.sourceforge.net/example/ index.html的。下面是从的.aspx code

I am trying to use jQuery ptTimeSelect plugin http://pttimeselect.sourceforge.net/example/index.html. Here is code from .aspx

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.22/themes/redmond/jquery-ui.css" />

<link rel="stylesheet" type="text/css" href="jquery.ptTimeSelect.css" />
<script type="text/javascript" src="jquery.ptTimeSelect.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $("#<%= txtTime.ClientID  %>").ptTimeSelect();            
    });

</script>
</asp:Content>   


<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">

<fieldset>

    <legend>TEXT</legend>
    <h2>Heading</h2>

    <ol>
        <li>
            <asp:Label AssociatedControlID="txtTime" runat="server">Time</asp:Label>
            <asp:TextBox ID="txtTime" runat="server"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtTime" CssClass="field-validation-error" ErrorMessage="Required"></asp:RequiredFieldValidator>
        </li>
</ol>  
</fieldset>  
</asp:Content> 

两者的.js和.css文件链接/包含在应用程序。我使用VS2012。我想包括的Site.Master的.js和.css,但这个插件是行不通的。我还有其他的jQuery插件,它们做工精细。结果
我想尽我的选择暗示found.Any在那里我会犯错?

Both .js and .css files linked/included in application. I am using VS2012. I tried to include .js and .css in Site.Master but this plugin is not working. I have other JQuery plugins, they working fine.
I tried every option I found.Any hint where I am making mistake?

推荐答案

我没有在jQuery的/ JavaScript的专长,所以我不知道使用的浏览器控制台。这就是为什么我无法找到任何jQuery的文件被加载与否。之后,我知道浏览器控制台,我发现文件不加载,因为不正确的路径,我纠正路径和它的工作现在。由于浏览器控制台:)感谢所有谁提出可行的解决方案。

I don't have expertise in jQuery/javascript, so I was unaware of using browser console. That's why I wasn't able to found either jQuery files are loaded or not. After I know about browser console I found files are not loaded because of incorrect path, I corrected path and its working now. Thanks to browser console:) Thanks to all who suggested possible solutions

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

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