Thursday, July 12, 2012

Asp.Net jQuery UI Slider Example


In this post Asp.Net jQuery UI Slider Example we shall see a simple example of how to add the jQuery UI Slider to an Asp.net page.

Add DIV tag to the page and add the below jQuery script.

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title> jQuery UI Slider</title>
    <link type="text/css"
href="css/smoothness/jquery-ui-1.8.21.custom.css"
rel="Stylesheet" />
    <script
type="text/javascript"
src="JavaScript/jquery-1.7.2.js"></script>
    <script
type="text/javascript"
src="JavaScript/jquery-ui-1.8.21.custom.min.js"></script>
    <link
type="text/css"
href="Stylesheet.css"
rel="Stylesheet" />
    <script type="text/javascript">
        $(function() {
            // Simple Slider
            $("#divSimpleSlider").slider();
        });
      </script>
</head>
<body>
    <form id="frmSlider" runat="server">
        <table>
            <tr>
                <td>Simple Slider</td>
                <td><div id="divSimpleSlider"
                        style="width:100px;"></div>
                </td>               
            </tr&gt 
</table>
    </form>
</body>
</html>



Search Flipkart Products:
Flipkart.com

1 comment:

Unknown said...

pls upload slider project pls
thanks