Date picker using Jquery

Hello,

Hi,

I'm using rails 2.0 and trying to implement date picker using jquery. We
installed all the required gems. I'm writing the code as like below

In Layout

  <script>
      $(document).ready(function(){
      $('#example').datepicker();
      $('#exampleRange').datepicker({rangeSelect: true, firstDay: 1});
      });
    </script>

in body

<link rel="stylesheet"
href="http://dev.jquery.com/view/trunk/themes/flora/flora.datepicker.css"
type="text/css" media="screen" title="Flora (Default)">
<script
src="http://dev.jquery.com/view/trunk/ui/current/datepicker/core/ui.datepic
ker.js"></script> <input type="text" id="example" value="Click inside me to
see a
datepicker" style="width:300px;"/>
<input type="text" id="exampleRange" value="Range datepicker starting on
Monday." style="width:300px;"/>

I'm not getting any errors but this is not working. Please help me to
get the answer.

Since the html-Code is rendered more or less correctly, this is nothing todo
with Rails, it's a clear JavaScript issue. Get yourself a script
debugger,place some alerts, check, if scripts are executed, and so one.
If you don't want to bother with JavaScript and are not bound to jquery you
can use http://code.google.com/p/calendardateselect/

Keep smiling
yanosz

Hi,

I tried in all the ways but still i din't get the output for datepicker.
Please anybody help me to get the output. Is that jquery supports rails
2.0.1?

Thanks,
manjula