JQuery Calander控制器错误 [英] JQuery Calander Controller Error

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

问题描述

我开发了一个带有JQuery< - >日期选择器和HTML的HTML页面。当我点击特定的文本框时,它没有显示。源代码如下所示。



I developed an HTML page with a JQuery <->Date picker & when I click on the particular text boxes it is not displaying. The source code is as at the below.

>
	<head>
	      <link rel="stylesheet" href="jquery-ui.css" />
		  <link rel="stylesheet" href="jquery-ui.min.css" />
          <link rel="stylesheet" href="jquery-ui.structure.css" />
          <link rel="stylesheet" href="jquery-ui.structure.min.css" />
          <link rel="stylesheet" href="jquery-ui.theme.css" />
          <link rel="stylesheet" href="jquery-ui.theme.min.css" />
		  
		  <script src="jquery-ui.js"></script>
		  <script src="jquery-ui.min.js"></script>
		  
		  <script>
		  
			$(document).ready(function(){ 
			$("#txtFromDate").datepicker({ numberOfMonths: 2, onSelect: function(selected) { 
              $("#txtToDate").datepicker("option","minDate", selected) 
			  } }); 

            $("#txtToDate").datepicker({  
              numberOfMonths: 2, 
              onSelect: function(selected) { 
              $("#txtFromDate").datepicker("option","maxDate", selected) 
             } });   
             }); 

			 /* numberOfMonths will determine the months that will display in the Calander control.*/
		  </script>
		  
	      <title>Validating JQuery Date Less Than Selected Date</title>
    </head>
	
    <body>

		<br/>
		From: <input type="text" id="txtFromDate" />
	    To: <input type="text" id="txtToDate" />
		<br/>
	
	</body>
</html>





我找不到我做错了什么。我使用Google API执行此操作,并且没有任何错误,并且完美无缺。我无法理解此事。



有人可以看看我提到过的事情。



谢谢&问候,

Chiranthaka



I cannot find what I had done wrong. I did this as with Google API, and there was not any error and it works perfectly. I cannot understand the matter.

Could someone look at into the matter I have mentioned.

Thanks & Regards,
Chiranthaka

推荐答案

document )。ready( function (){
(document).ready(function(){


#txtFromDate)。datepicker({numberOfMonths: 2 ,onSelect: function (已选择){
("#txtFromDate").datepicker({ numberOfMonths: 2, onSelect: function(selected) {


#txtToDate)。 datepicker( option < span class =code-string> minDate,已选中)
}});
("#txtToDate").datepicker("option","minDate", selected) } });


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

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