eva21 Posted August 19, 2008 Share Posted August 19, 2008 If the user presses a button, is there any way i can make a text box appear in the form... also if the user presses another button in the same form, could i make it so that some variable has a counter, like it was pressed so many times? Quote Link to comment Share on other sites More sharing options...
Maq Posted August 19, 2008 Share Posted August 19, 2008 Yes, find some tutorials on Javascript and DTHML. It's easy with javascript. Quote Link to comment Share on other sites More sharing options...
lemmin Posted August 19, 2008 Share Posted August 19, 2008 Try this: <form> <input type="button" onclick="txt1.style.display='inline'" value="Show Text Box"> <input id="txt1" type="text" style="display:'none'"><br> <input type="button" onclick="txt2.value++" value="Increment"> <input id="txt2" type="text" CONTENTEDITABLE=false value=0> </form> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.