December 30th, 2012, 04:48 AM
Display hidden element twice or more
I could display hidden element through the use of Java script.
How can I display the same hidden element more than once.
lets say that the email input filed is hidden and when user clicks display email field then it comes up. I wanted to come up again when user clicks the same bottom again.
December 30th, 2012, 05:52 AM
I think what you are saying is that you want a user to be able to click the button and it adds another field each time they click it? so click it once get 1 field, click it again get a second field etc etc?
if so you would do something like
document.getElementById('containerDivId').innerHTML += "<input type=\"text\" name\"blah\" id=\"blah\">";
Maybe a mod could move this thread to the JS forum where you will get more love?
Last edited by sir_drinxalot; December 30th, 2012 at 05:55 AM.