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

0 nhận xét:

Đăng nhận xét