D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
d30jeff
Full window
Github gist
Click to add text field
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title></title> <script src="https://code.jquery.com/jquery-2.1.4.js"></script> <script> $(function() { $("#clickMe").on('click', function() { var menu = "<label>Name</label><input type='text' name='name[]'>"; $(menu).appendTo("#myForm"); }); }); </script> </head> <body> <button id="clickMe">Click me to add column</button> <form id="myForm"> </form> </body> </html>
https://code.jquery.com/jquery-2.1.4.js