I have a <select> that is pre-populated with names from a MySQL database via PHP. Now, I want the user to select a name and have no effect on the page, nor form data, BUT within the <select> other than the pre-populated data i have a “New Name” <option>, i would like if this <option> is selected that additional <form> objects would be displayed so that the user can easily add their information to the DB…
how is it possible to write a script to add additional form objects only when the “New Name” option is selected by the user?
I can code all the php/mysql… but I’m not the greatest with JavaScript, so I ask if anyone is willing to help me write this java script. Thank-you!