Wednesday, July 10, 2013

How to use toggle in Jquery

ASPX PAGE

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default6.aspx.cs" Inherits="Default6" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <script src="myjavascript.js" type="text/javascript"></script>
<script type="text/javascript">

    $(document).ready(function () {

        alert("I am ready!");
            $("div.test").add("p.quote").html("a little test").toggle(3000);
      });

   
</script>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div class="test">
  <p class="quote"> this is division...</p>
    </div>
    </form>
</body>
</html>

No comments:

Post a Comment

Your comment is pending for approval

AngularJS Basics - Part 1

                                                                  AngularJS What is AngularJS ·          Framework by googl...