Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<title>Dynamically Adding Elements w/ Attributes</title>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=9" />
<script type='text/javascript' src='http://code.jquery.com/jquery-1.9.1.min.js'></script>
</head>
<body>
  <div class="drawing-area"></div>
  
  <div class="toolbox">
    <button class="confirm-add-button">Button</button>
    <table class="fill table-in add-button-properz">
      <tr>
        <td>class:</td>
        <td><input type="text" class="newbtnclassname"></td>
      </tr>
      <tr>
        <td>text:</td>
        <td><input type="text" class="newbtntxt"></td>
      </tr>
    </table>
    <textarea class="canvas-code fill"></textarea>
  </div>
</body>
</html>
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