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


Comments


You need to login to view comments.