Check out the Pastebin Gadgets Shop. We have thousands of fun, geeky & affordable gadgets on sale :-)Want more features on Pastebin? Sign Up, it's FREE!


By: a guest on Mar 12th, 2012  |  syntax: HTML  |  size: 0.42 KB  |  views: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print  |  QR code  |  clone
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  2. <script src="dynamicFormGen.js" language="Javascript" type="text/javascript"></script>
  3. <form method="POST">
  4.      <div id="dynamicInput">
  5.           Tittel 1<input type="text" name="tittel">
  6.           Tekst 1<input type="text" name="tekst">
  7.      </div>
  8.      <input type="button" value="Legg til" onClick="addInput('dynamicInput');">
  9.      <input type="button" value="Fjen" onClick="removeInput('dynamicInput');">
  10. </form>
clone this paste RAW Paste Data