Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/81.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery 我怎样才能让datepicker在线工作,同时又有一个年份下拉列表_Jquery_Datepicker - Fatal编程技术网

Jquery 我怎样才能让datepicker在线工作,同时又有一个年份下拉列表

Jquery 我怎样才能让datepicker在线工作,同时又有一个年份下拉列表,jquery,datepicker,Jquery,Datepicker,我想有一个内联日期选择器,但具有年/月下拉列表。使用JQuery Datepicker可以吗 见 用于内联 <!doctype html> <html lang="en"> <head> <meta charset="utf-8" /> <title>jQuery UI Datepicker - Display inline</title> <link rel="stylesheet" href="htt

我想有一个内联日期选择器,但具有年/月下拉列表。使用JQuery Datepicker可以吗

用于内联

<!doctype html>

<html lang="en">
<head>
  <meta charset="utf-8" />
  <title>jQuery UI Datepicker - Display inline</title>
  <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
  <script src="http://code.jquery.com/jquery-1.9.1.js"></script>
  <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
  <link rel="stylesheet" href="/resources/demos/style.css" />
  <script>
  $(function() {
    $( "#datepicker" ).datepicker();
  });
  </script>
</head>
<body>

Date: <div id="datepicker"></div>


</body>
</html>
合并他们的选项是的,这是可能的

你可以这样试试

  $(function() {
    $( "#datepicker" ).datepicker({
       changeMonth: true,
       changeYear: true
    });
  });

内联有什么区别?请添加一些代码或工作示例:)您是否浏览了该链接?什么事?
  $(function() {
    $( "#datepicker" ).datepicker({
       changeMonth: true,
       changeYear: true
    });
  });