Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
<script src="https://code.jquery.com/jquery-2.2.4.js"></script>
  
</head>
<body>
<div class=parent>
  <p>
  <iframe class=child allowfullscreen="" frameborder="0" height="250" src="http://via.placeholder.com/200x200" style="border:0" width="300" onload="debugger"></iframe>
  </p>
  </div>
  <div class=parent>
  <p class=hide-seek>
  <iframe class=child allowfullscreen="" frameborder="0" height="250" src="https://www.google.com/maps/embed?pb=!1m10!1m8!1m3!1d405544.556384143!2d6.6402125!3d61.7258614!3m2!1i1024!2i768!4f13.1!5e1!3m2!1sen!2s!4v1502714127200" style="border:0" width="300"></iframe>
  </p>
  </div>
<br>
<input type=button value="Toggle Maps">
  
</body>
</html>
 
$("input").on("click", function()
              {
  $(".parent:nth-child(2) p").toggleClass("hide-seek");
  
});
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers