Automatiacally Generating text input and dropdown select on click using javascript/Jquery -
I am trying to create a system like if a user clicks on the "Add" button, it creates two text fields And select two drop-down automatically. I searched Google for the tutorial, but have managed to find me, how to add text fields only, but I have to add drop down with the option to remove.
I have some knowledge of PHP but a little bit JavaScript or Jquery
Would you please kindly help?
Here I have found that the code is:
& Lt; Title & gt; Untitled document & lt; / Title & gt; & Lt; Script & gt; Generate function () {var d = document.getElementById ("div"); D.innerHTML + "" & lt; P & gt; & Lt; Input type = 'text' name = 'food' & gt; "; Var E = document.getElementById (" div "); E.innerHTML + =" & lt; Input type = 'text' name = 'food' & gt; "}}
Comments
Post a Comment