connectseekers.com

Wednesday, 17 February 2016

jQuery Datepicker Calendar With Slide Down Effect In Asp.Net

2/17/2016 - By Pranav Singh 0

This article I will show you how you can create jQuery Datepicker Calendar with Slide down Effect in Asp.Net using jQuery. In this press Ctrl button and select and deselect item as you need.


So for this article first we will create a new asp.net application and add the below library and css reference in header of the page.

   
<link rel="stylesheet" href="http://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
    <script src="http://code.jquery.com/jquery-1.10.2.js"></script>
    <script src="http://code.jquery.com/ui/1.11.4/jquery-ui.js"></script>


In header of the page add the below code and css.


<style>
        .fontsize {
            font-size: 11px;
        }
    </style>


Have a look of the jQuery code.

  
 <script>
   $(function () {
            $("#txtDatepicker").datepicker();
            var effect = "slideDown";
            $("#txtDatepicker").datepicker("option", "showAnim", effect);
        });
</script>

This code is responsible for populating calendar. Here is the complete code.


<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>jQuery Datepicker Calendar With Slide Down Effect In Asp.Net</title>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
    <script src="http://code.jquery.com/jquery-1.10.2.js"></script>
    <script src="http://code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
    <style>
        .fontsize {
            font-size: 11px;
        }
    </style>
    <script>
        $(function () {
            $("#txtDatepicker").datepicker();
            var effect = "slideDown";
            $("#txtDatepicker").datepicker("option", "showAnim", effect);
        });
    </script>
</head>
<body class="fontsize">
    Date: <input type="text" id="txtDatepicker" size="30">
</body>
</html>


Now we have done run the application to check the output.




About the Author

We are the group of people who are expertise in different Microsoft technology like Asp.Net,MVC,C#.Net,VB.Net,Windows Application,WPF,jQuery,Javascript,HTML. This blog is designed to share the knowledge.

Get Updates

Subscribe to our e-mail newsletter to receive updates.

Share This Post

0 comments:

Please let me know your view

Free Ebooks


About Us

We are the group of people who are expertise in different Microsoft technology like Asp.Net,MVC,C#.Net,VB.Net,Windows Application,WPF,jQuery,Javascript,HTML. This blog is designed to share the knowledge.

Contact Us

For writing article in this website please send request by your

GMAIL ID: dotnetpools@gmail.com
Email Id : contact@aspdotnet-pools.com

Bugs and Suggestions

As we all know that this website is for sharing knowledge and providing proper solution. So while reading the article is you find any bug or if you have any suggestion please mail us at contact@aspdotnet-pools.com.

Partners


Top jQuery Plugins

Global Classified : Connectseekers.com
© 2014
back to top