Help with HTML textarea coding!!?
-
Hello I am a novice programmer, who needs to complete this problem for a homework assignment but it giving me a lot of trouble. Here it is: A line that says “My name is” followed by a text box with “Sam” already entered in it and the message “Go ahead, change my name.” When the visitor changes the name in the box, an alert should pop up with the message “Sam I am!” Then the value in the text box should change back to Sam. I simply can't figure out how to get the text area to replace whatever they type with "Sam" again. Here's the code I have so far: <html> <head> <title>Chapter 5, Exercise #1</title> </head> <body bgcolor="white" text="black" link="blue"> <form action="" method="post"> My name is: <textarea name="comments" cols="8" rows="1" wrap="soft" onChange="alert('Sam I am!')"> Sam </textarea> . Go ahead and change my name. </form> </body> </html>
-
Answer:
<html> <head> <title>Chapter 5, Exercise #1</title> <head> <body bgcolor="fff" text="000" link="blue"> <!-- forgot the hex for blue :P--> <form action="" method="post" <label>My name is:</label> <textarea name="comments" cols="8" rows="1" wrap="soft" onChange="alert("Sam I am!")"> Sam </textarea> <p>Go ahead and change my name</p> </form> </body> </html> Try that. -Billy
Glen at Yahoo! Answers Visit the source
Related Q & A:
- How To Learn Coding?Best solution by Yahoo! Answers
- How to completely remove TextArea Verical ScrollBar?Best solution by css-tricks.com
- Can you help me learn how to copy and paste an html link to my website?Best solution by Yahoo! Answers
- How do I become certified to do medical coding?Best solution by Yahoo! Answers
- What's the different between medical administrative assistant and medical billing and coding?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.