|
|
Dear Forum, How do I remove the default value from a textbox when it is defined by the following HTML? (textarea name="Area0" rows="4" cols="80")
Please replace parentheses with < and >. |
|
|
var myTextArea = $x("//textarea[@name='Area0']")[0]; //this is your textarea
myTextArea.textContent = "";
|
|
|
To use Arvid's elegant code you need to include the $x function form the standard library post |
|
|
Works perfect! Thanks Arvid and alien. :) |