...

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



it_mohan2002
06-10-2008, 07:36 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

rangana
06-10-2008, 07:56 AM
First of all, you posted this in the wrong section. Anyways, one of the mods will move this for you.

Anyway, it could. What's being stored by divall variable?
Also, show us the related markups.

it_mohan2002
06-10-2008, 09:43 AM
Hi,

The 'divall' is an div id which i defined as
<div id="divall" style="display:none;"></div>
If user click on the link-1, iam adding the textarea and button to the div

Regards,
Mohan

rangana
06-10-2008, 10:13 AM
Then, surround it with quotes.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum