Hi Guest

MobileUser

1 HomePage 1 Jobs 1 WalkIn 1Articles  

Cat Exam

 :) Latest Topic
AJAX
VB.NET
SQL Query
UDDI
CLASS
JavaScript Questions
SharePoint Interview
SilverLight
WCF
general knowledge
 ASP.NET
 :) Hot Jobs
 
 :) Latest Articles


  

 


How to show and hide DIV tag with the help of jQuery
Question Posted on 26 Apr 2013

Home >> WEB >> JQuery >> How to show and hide DIV tag with the help of jQuery




Below is the code for show and hide the div tag by using jquery

< html xmlns="http://www.w3.org/1999/xhtml">
< head>
< title>DIV Tag Show and Hide with jQuery< /title>
< script type="text/javascript" src="http://code.jquery.com/jquery-1.8.2.js">< /script>
< script type="text/javascript">
 $(function()
 {
  $('.showhide').click(function() {
  $(".divtagcss").slideToggle();
 });
 });
< /script>
< style type="text/css">
 .divtagcss{
 width: 30%;
 padding:20px;
 background:#EB5E00;
 color:#fff;
 margin-top:10px;
 border-bottom:5px solid #FFF;
 display:none;
}
< /style>
< /head>
< body>
< a href="#" class="showhide">Show and hide< /a>
< div class="divtagcss">
   Here is the jquery in getproductprice.com
   Here is the jquery in getproductprice.com
   Here is the jquery in getproductprice.com
   Here is the jquery in getproductprice.com
< /div>
< /body>
< /html>
0
0



 
 Input Your Comments Or suggestions(If Any)
 Name
 Email(optional)
 Comments


Other Important Questions
Difference between body.onload and document.ready in jQuery
Different method which provides effects in JQuery
Three types of selector in JQuery
Example of JQuery focus event on textbox
What is significance of jQuery.NoConflict






 
Top Searches:asp net questions vb net questions sql query uddl questions class javascript Questions sharepoint interview questions and concept silverlight questions and concept wcf questions beans general knowledge ajax questions
PHP | Biztalk | Testing | SAP | HR |