I have the following:
<textarea name="comment"><p>Good job.</p></textarea>
Using JavaScript, I’d like to replace “Good job” with “Here’s how I graded your assignment:”.
I’m not comfortable with string replacement yet.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A pure Javascript solution:
It’d be better to give your
textareaand id and select it usinggetElementByIdinstead.