The code below ADDS a new EMAIL field to the form via an href link. Can someone here modify the code to REMOVE an EMAIL field? or point me in the right direction?
Thanks,
Frank
Code:<SCRIPT type=text/javascript> function add_email() { var div1 = document.createElement('div'); // Get template data div1.innerHTML = document.getElementById('newemailtpl').innerHTML; // append to our form, so that template data become part of form document.getElementById('newemail').appendChild(div1); } </SCRIPT> <DIV id=newemail> <DIV class=email> <INPUT id=email_address_ type=text name=email_address[]> </DIV> </DIV> <P id=addnew> <A href="javascript:add_email()">Add New</A> </P> <DIV style="DISPLAY: none" id=newemailtpl> <DIV class=email> <INPUT id=email_address_ type=text name=email_address[]> </DIV> </DIV>


Reply With Quote
Bookmarks