2 scenarios:

1. If the textarea is read only (i.e., the user is not able to key in text), instead of removing the value, why don't the function recalculates what needs to be in the textarea and replace the whole value.

2. If the textarea is not read-only, use regular expression to find the text and remove it. Use the replace method in javascript string - look it up on MSDN online. Depending on your circumstances, you may be able to get away with not using regular expressions. The replace method can work with both regular expressions or simple string replacement.

Dennis.

----- Original Message ----- From: "Jeremy Coulter" <[EMAIL PROTECTED]>
Sent: Thursday, October 19, 2006 9:59 PM


Hi All.
I am Just doing a webbased tool at the moment that I need some javascript
help with.

Basically what I want to do is this :-

Have a series of tick boxes, each with a value assigned to them, say "I am a
test"
I want to add this text to a TextArea if its checked.....which I can do now,
BUT heres the thing, IF I decided to uncheck the tickbox, I need the value
added, in this case "I am a test" removed from the TextArea.....BTW, there
would/could be other text in the TextArea that would need to stay there.

Is this hard to do? is it a quick thing to do? can someone assist?


Thanks, Jeremy

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.5/483 - Release Date: 18/10/2006




--------------------------------------------------------------------------------


_______________________________________________
Offtopic mailing list
[email protected]
http://ns3.123.co.nz/mailman/listinfo/offtopic


_______________________________________________
Offtopic mailing list
[email protected]
http://ns3.123.co.nz/mailman/listinfo/offtopic

Reply via email to