Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <!-- Insert script for form duplication function -->
- <script type="text/javascript">
- var counter = 0;
- function init() {
- document.getElementById('moreFields').onclick = moreFields;
- moreFields();
- }
- function moreFields() {
- counter++;
- var newFields = document.getElementById('readroot').cloneNode(true);
- newFields.id = '';
- newFields.style.display = 'block';
- var newField = newFields.childNodes;
- for (var i=0;i<newField.length;i++) {
- var theName = newField[i].name
- if (theName)
- newField[i].name = theName + counter;
- }
- var insertHere = document.getElementById('writeroot');
- insertHere.parentNode.insertBefore(newFields,insertHere);
- }
- window.onload = moreFields;
- </script>
- </head>
- <body bgcolor="#FFFFFF">
- <!-- Insert hidden section template. -->
- <div id="readroot" name="wsform" style="display:none !important;">
- <table border="0"
- cellpadding="0"
- cellspacing="0"
- width="90%"
- bgcolor="#FFFFFF">
- <tr>
- <td class="txt4small"
- colspan="2">
- Information</td>
- </tr>
- <tr>
- <td class="bg2"
- colspan="2">
- </tr>
- <tr>
- <td colspan="2">
- </td>
- </tr>
- <tr>
- <td class="txt3bld"
- nowrap="nowrap">Date
- </td>
- <td><input type="Text"
- size="30"
- class="txtinput"
- name="w1date"
- id="Workshop Date"
- required="y"
- value="" /></td></tr>
- </table>
- <input type="button" value="Remove Workshop"
- onclick="this.parentNode.parentNode.removeChild
- (this.parentNode);" />
- </div>
- <!-- End clonable section. Clonable section will be written at "writeroot" -->
- <div id="container">
- <span id="writeroot"></span>
- <table border="0"
- cellpadding="0"
- cellspacing="0"
- width="90%"
- bgcolor="#FFFFFF">
- <tr>
- <td align="right"
- colspan="2">
- <input type="button" id="" onclick="moreFields()" value="Add another workshop"
- height="20"
- />
- <input type="submit"
- value="Submit"
- width="65"
- height="20"
- border="0"
- alt="Submit Form"
- name="Submit"
- id="Submit" /></td>
- </tr>
- <br />
- <br />
- </td>
- </tr>
- </table>
- </form>
- </td>
- </tr>
- </table>
- </div>
- <br /><br />
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement