hide Content using JQuery in VB.NET

This documentation is about how to hide content in web application using JQuery.
  • 1996

JQuery is a development tool which makes quicker and easy to build JavaScript webpages and web applications. You can accomplish attractive effects on your application, with less code than JavaScript would take.

I starts from basic for JQuery beginners, here you will learn a simple concept describes  how to hide content on you web page using JQuery.   

Code Snippets

title>JQuery Hide Content</title>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
    $(document).ready(function () {
        $("p").click(function () {
    <style type="text/css">
            color: #333399;
body bgcolor="#f0f0f0">
    <form id="form1" runat="server">
<p style="border-style: groove; font-family: Verdana; font-size: small; background-color: #E6F7FF;" 
        class="style1"><strong>A Simple JQuery Example</strong></p>
    <p style="font-family: Verdana; font-size: x-small">Click here to disappear this content.</p>
<p style="font-family: Verdana; font-size: x-small">Now click on this image to away 
    it!<asp:Image ID="Image1" runat="server" Height="80px" ImageUrl="~/flower.jpg" 
        Width="137px" />
<p style="font-family: Verdana; font-size: x-small">And click here
    <asp:Button ID="Button1" runat="server" Font-Names="Verdana" 
        Font-Size="X-Small" Text="Button" />
&nbsp;to hide this button.</p>

The output will look like this.

HideImg 1.gif

Now we click on the second line to disappear the image with the content of whole line. 

HideImg 2.gif

Just like above you can disappear rest of the lines just by clicking on them. 


jQuery is a new technology and growing very rapidly. Developers have taken interest in this coding language to great extend and making their applications more powerful.


More Articles

© 2020 DotNetHeaven. All rights reserved.