开发者

Preventing Multiples [closed]

开发者_StackOverflow社区 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

I'm trying to figure out how I can prevent multiple of the class asks questions at the same time or the ask2 question currently displaying with the ask question.

Preventing Multiples [closed]

http://pastebin.com/S91NfZVV


Add this at line 26, right after e.preventDefault();


if($('div.question').length){return;}

This instead will close an existing box before opening another one(has to be placed at the same line)

$('div.question').fadeOut(function(){$(this).remove();});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜