jQuery has item toggled

/ Published in: JavaScript
Save to your folder(s)

Testing if toggle has happened.

Copy this code and paste it in your HTML
  1. var visible = $(this).next('div.info').toggle().is("visible");
  2. if(visible){
  3. alert("Hey! I've just showed up here!");
  4. }

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.