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>
  </head>
  <body>
    
    <div>
       <p><span>Hello</span>, how are you?</p>
      
       <p>Me? I'm <span>good</span>.</p>
      
       <p>Nice!</p>
    </div>
    
    <button>Underline Everything</button>
    
    <script src="https://code.jquery.com/jquery-3.1.0.js"></script>
  </body>
</html>
 
$(() => {
  $("button").click(() => {
    // this will add a border bottom 
    // to all the children of the div element (the <p> elements)
    $('div').children().css("border-bottom", "3px double red")
  })
})
Output

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

Dismiss x