Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(this).click(function(){
- $(this).next('div.info').toggle();
- });
- var visible = $(this).next('div.info').toggle().is(":visible");
- if(visible){
- alert("Hey! I've just showed up here!");
- }
- if ($(selector).is(':visible')) {
- // do something
- }
Add Comment
Please, Sign In to add comment