0

why if this code works:

<form name="form1"><textarea class="xxlarge" id="add_url_desc" name="j_desc" onKeyDown="textCounter(document.form1.j_desc,'job_limit',150)" onKeyUp="textCounter(document.form1.j_desc,'job_limit',150)"></textarea>

why this one dont?:

<form name="general">
<form name="form1"><textarea class="xxlarge" id="add_url_desc" name="j_desc" onKeyDown="textCounter(document.general.form1.j_desc,'job_limit',150)" onKeyUp="textCounter(document.general.form1.j_desc,'job_limit',150)"></textarea>
</form>

Why i cant trigger the onKey action when one form is inside other one??? Thanks!

2 Answers 2

2

HTML doesn't allow nested forms.

Sign up to request clarification or add additional context in comments.

1 Comment

+1 - by my count you had two more characters in that answer than needed :)
1

You just can't nest forms in HTML. It will never work right... not only will javascript break, the browser won't know how to handle the forms either. Sorry.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.