date picker not appearing after clicking on image

孤者浪人 提交于 2019-12-02 12:00:29

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)

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!