show and hide a div in single button using jquery

     jQuery two methods for show and hide a div, but in some time we need to do the process from a single button there we can use toggle() method.

syntax

      $("selector").toggle();

Example

      $("#idname").toggle();


Example Program:- (Editor)


Editor is Loading...

Advertisement




Tags:
toggle() in allinworld99, show/hide using single button in allinworld99, jQuery in allinworld99

Nhận xét

Bài đăng phổ biến từ blog này

How to set the SDK, NDK and JDK path to android studio?

if statement

Select all values from list box in a single click using javascript