Skip to content Skip to sidebar Skip to footer

Date Picker Not Appearing After Clicking On Image

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 gene

Solution 1:

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)


Solution 2:

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  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.


Post a Comment for "Date Picker Not Appearing After Clicking On Image"