php - How to add textbox dynamically? -


Help with this criteria?

Users can add as many names as they want, as they can add the NAME link fulfills the purpose for this.

How can I handle this specification? Please check the details given below:

alt text

Thank you.

Hope it gets cured.

  & lt; Html & gt; & Lt; Script type = "text / javascript" & gt; Function edifier set () {var namefieldset = document.getElementById ("name"). Clonnode (true); Document.getElementById ("name"). AppendChild (namefieldset); } Function deletefieldset (e) {var namefieldset = e.parentNode; Namefieldset.parentNode.removeChild (NamedFieldSet); } & Lt; / Script & gt; & Lt; Body & gt; & Lt; Div id = "name" & gt; Div id = "name" & gt; Name: & lt; Input name = "namefield" type = "text" /> & Lt; A href = "#" onclick = "deletefieldset (this)" & gt; Remove & lt; / A & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; Input id = "addnamebtn" type = "button" value = "add name" onclick = "addfieldset ()" /> & Lt; / Body & gt; & Lt; / Html & gt;  

I remembered that an excellent post from "Quircomods" was briefly summarized. I still hold it in my bookmark here.

Good day!


Comments

Popular posts from this blog

MySql variables and php -

url rewriting - How to implement the returnurl like SO in PHP? -

Which Python client library should I use for CouchdB? -