PDA

View Full Version : Is inner html elements can recognised by form or not ?



it_mohan2002
06-10-2008, 06:33 AM
Hi,

In my web page, iam trying to show the form elements dynamically.
when user clicks on lets say link-1, then i have to show the text box and button. and i done like this:

document.getElementById(divall).innerHTML=
'<textarea name="message" cols="80" rows="2"></textarea>
<input type="button" class="button" name="messagebutton" value="Send" onclick="send(this.form,id)";/>'

Here, textarea is not recognised by the form.
Is inner html elements can recognised by form or not ?
Thanks in advance.

Regards,
Mohan

jscheuer1
06-10-2008, 06:51 AM
Not. Use DOM level 2 create and append when adding elements to forms.