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
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