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

Sign up to request clarification or add additional context in comments.

6 Comments

OP want datepicker on button click event.
ya its working for you but didn't understood where i'm going wrong .
you didnt include the jquery ui in fiddle checkout the left panel ill include your sequence is wrong wait ill updated my answer
Its working now ... issue was with ordering of CDN .
that was i said @Aditya :) check my answer
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.