This is a very simple tutorial on how to show and hide a division tag or Expand and collapse toggle div using simple jquery. <script src=”http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js” type=”text/javascript”></script> <script type=”text/javascript”> $(document).ready(function(){ $(”#butShowHideSlow”).click(function () { $(”#divShowHideSlow”).toggle(”slow”); }); }); </script> <button id=”butShowHideSlow”>Click Me</button> <div style=”width:300px;height:47px; border: solid 1px black;background-color:white;text-align:center;” id=”divShowHideSlow”>Div that hide and show... (Continue reading)
Guys here we are gonna see how we can load another webpage content using jquery, very simple to use. Code: 1. HTML Page Here is the code of “test.html” file <head> <title>Content Showing Script</title> <script type=”text/javascript” src=”jquery-1.2.6.js”></script> <script type=”text/javascript”> function content() { $.ajax({ url : “getpage.php”, success : function (data) { $(”#content”).html(data); } }); } </script> </head> <body> Get The... (Continue reading)
Just a simple slideshow using jquery <div id="slideshow"> <img src="img/img1.jpg" alt="" class="active" /> <img src="img/img2.jpg" alt="" /> <img src="img/img3.jpg" alt="" /> </div> Now let’s use CSS to position the images on top of each... (Continue reading)
Multiple form submission is one of the issues that a webmaster face during his development.So instead of writing a hardcore code in the server side.We can just validate a multiple submission using simple client side Jquery. Consider we have this HTML... (Continue reading)
Below are some basic examples of Jquery and its feature. How to add jQuery to your website Installing You can download jquery.js file form jquery.com. <script type=”text/javascript” src=”jquery.js“></script> OR Recommended <script type=”text/javascript” src=”http://ajax.googleapis.com/ajax/ libs/jquery/1.3.0/jquery.min.js“></script> Jquery Code Generally used script run this when the HTML is all ready. Live Demo <script type=”text/javascript“> $(document).ready(function() { alert(’Welcome to mistonline.in‘); }); </script> Similar as previous script.... (Continue reading)