Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-3.0.0.js"></script>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
<textarea class="detail-textarea mt10" id="J-pull" placeholder="我也说一句"></textarea>
  <div class="r hide textarea-js" style="display: none;">  <button class="btn-normal btn10 J-send">发送</button></div>
</body>
</html>
 
//显示弹出框
$("#J-pull").focus(function(){
   $(".textarea-js").show();
});
$("#J-pull").blur(function(){
    $(".textarea-js").hide();
});
$(".J-send").click(function(){
    var pop=$("#J-pull").text();
    alert(pop);
});
Output

This bin was created anonymously and its free preview time has expired (learn why). — Get a free unrestricted account

Dismiss x
public
Bin info
anonymouspro
0viewers