forgive me for this question but i am trying to get this done in the absence of my developer. based on the code below my "testareaID" if "Form1", right? and for the onclick event, how do i add that into the onclick event we are already using?
<tr>
<td id="col3">
<font size="4" color="#DD0000">Other Shares Description</font>
<h5> </h5>
Your description is limited to 2000 characters.
<form name=Form1 action=AddOtherShareText.a
<textarea name=txtMessage cols=75 rows=6><%=Request.Querystr
<br>
<input type=submit name=btnSubmit value="Add Description" ID="Submit1">
<!--onclick="window.opener
<input type=button onclick="window.close();" value="Cancel" ID="Button1" NAME="Button1">
<p></p>
</form>
</td>
</tr>
Main Topics
Browse All Topics





by: b0lsc0ttPosted on 2006-10-19 at 10:17:53ID: 17767717
scottspivey,
extareaID" );
Provide the textarea tag with an id attribute, if one doesn't already exist. Then you can use the code below.
function checkMsg() {
var textArea = document.getElementById("t
if (textArea.length > 2000) {
alert("Your message is too long.");
}
}
Call the function using the onclick event in the button (e.g. onclick="checkMsg(); return false;").
Let me know if you have any questions or need more information.
b0lsc0tt