date picker not appearing after clicking on image

后端 未结 2 1112
无人及你
无人及你 2021-01-28 07:48

I have a fiddle which displays date picker. same code i have written below but nothing happens, what wrong i am doing? When i click on that green colour then no date picker is g

相关标签:
2条回答
  • 2021-01-28 08:02

    Your CSS isn't being detected because you have your link in the body. If I remove the CSS from your fiddle, it doesn't display at all:

    http://jsfiddle.net/cBwEK/11/

    Try moving this to the head tag along with your script elements. I've also changed your comment block to the correct HTML syntax:

    <head>
       <script type="text/javascript" src="mootools-yui-compressed.js"></script><!-- mootools script -->
       <script type="text/javascript" src="datepicker.js"></script>     
       <link rel="stylesheet" type="text/css" href="datepicker.css" />
    </head>
    <body>
       .......
    

    Also, your class for the input is date picker. Looking at your mootools script, this should be datepicker.

    0 讨论(0)
  • 2021-01-28 08:15

    I think you miss a mootools core library.

    <script src="http://fiddle.jshell.net/js/lib/mootools-core-1.4.5-nocompat.js"></script>
    

    Here is my working solution http://jsbin.com/unosar/4/edit#source (click at Render button to preview)

    0 讨论(0)
提交回复
热议问题