1

PFB the code , but i'm unable make the calendar visible on button click.where am i going wrong ?

<!doctype html>

</head>
<body>
    <p>Date: <input type="button" id="datepicker"></p> 
</body>
<script>
    $(document).ready(function(){
        $("#datepicker").datepicker();
    });
</script>

2

1 Answer 1

1

Checkout Here

$("#datepicker").datepicker();

You're missing the include sequence in jquery.check it now may be this is your error

<script src="code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="//code.jquery.com/ui/1.11.3/jquery-ui.js"></script>

Im using your code its working fine

6
  • OP want datepicker on button click event.
    – Sadikhasan
    Commented Mar 7, 2015 at 7:47
  • ya its working for you but didn't understood where i'm going wrong .
    – Aditya
    Commented Mar 7, 2015 at 7:51
  • you didnt include the jquery ui in fiddle checkout the left panel ill include your sequence is wrong wait ill updated my answer
    – I'm Geeker
    Commented Mar 7, 2015 at 7:52
  • Its working now ... issue was with ordering of CDN .
    – Aditya
    Commented Mar 7, 2015 at 9:23
  • that was i said @Aditya :) check my answer
    – I'm Geeker
    Commented Mar 7, 2015 at 9:23

Not the answer you're looking for? Browse other questions tagged or ask your own question.