Category Archives: jQuery
Difference Between show(), hide() and toggle() function in jQuery
In jQuery programming, show() function is to show the html element and hide() function is to hide the html element. toggle() function also do the same operation. Many jQuery newbie programmers gets confused about the difference between show(), hide () and toggle()
The difference between show(), hide() and toggle() is toggle() function do the action of both show and hide.
show() & hide()
Here is the example for show() and hide() function. We can reduce or increase the speed of shoe and hide action by following options
hide()
$("div.text").hide(); -No argumented hide()
Introduction to jQuery
jQuery is a javscript library function and it is open source. It was released in 2006. jQuery is used to make DOM elements, animations, handle events, HTML manipulation, CSS manipulation and AJAX.
Before writing jQuery code into the webpage, we have to call jQuery library file. Library file is stored in javascript file and have to be called in <head> section.
[code type=html]
<head>
<script type="text/javascript" src="jquery.js"></script>
</head>
[/code]
The library file jquery.js can be downloaded from jquery offical site http://jquery.com/ fre





