toggle effects using JQUERY

We can display or hide any element by using show() or hide() effect. We can achieve both of this by using single toggle() effect.

If the element is displayed initially then it will be hidden and it will hidden if it is already displayed.

$('#b1').click(function(){
$('#d1').toggle();
})

Speed of transition

We can manage the speed of transition by adding three choices of one optional parameter .

fast
slow
Milli seconds


Here is the code to transit fast
	$('#d1').toggle('fast');



Subscribe

* indicates required
Subscribe to plus2net

    plus2net.com



    Post your comments , suggestion , error , requirements etc here .







    Most Popular JQuery Scripts

    1

    Two dependant list boxes

    2

    Calendar with Date Selection

    3

    Data change by Slider

    4

    Show & Hide element


    JQuery Video Tutorials




    We use cookies to improve your browsing experience. . Learn more
    HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
    ©2000-2021 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer