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

Tourist places in kk district:1) Thiruvalluvar statue

Variable in CSS

How to set multiple images in a loop javascript?