0

Script i am using shown below.Date picker is showing on screen but it is applying to all input fields.( WHat should i change to get only for a particular input field. I tried with id rangeA but still it is applying to all fields.

<script type="text/javascript">  
        $(function()
        {
              $('input').daterangepicker({arrows:true}); 
        });
    </script>


<form>
<li>  
<label for="name">Your Name:</label>
<input type="text" size="40" id="name" />
</li>

<li>
<label for="date">Select Date</label>
<input type="text" value="4/23/99" id="rangeA" />
</li>

</form>        

Edited by pritaeas: Added markdown. Moved to Javascript.

3
Contributors
5
Replies
12
Views
4 Years
Discussion Span
Last Post by narasimha9
0

You may consider trying this instead:

JQuery DateRange Plugin

In any case, you should check out the "Implement" tab on that page to see that you are missing a vital tie-in between the input field and the daterangepicker function.

Edited by flashhtml5: additional info

0

I tried with the id what you written but datepicker is applying to all the fields

$('#rangeA').daterangepicker({arrows:true});

Edited by narasimha9

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.