Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-10-2008, 07:36 AM   PM User | #1
it_mohan2002
New to the CF scene

 
Join Date: Jun 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
it_mohan2002 is an unknown quantity at this point
Is inner html elements can recognised by form or not ?

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
it_mohan2002 is offline   Reply With Quote
Old 06-10-2008, 07:56 AM   PM User | #2
rangana
Senior Coder

 
rangana's Avatar
 
Join Date: Feb 2008
Location: Cebu City, Philippines
Posts: 1,752
Thanks: 65
Thanked 372 Times in 365 Posts
rangana will become famous soon enoughrangana will become famous soon enough
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.
__________________
Learn how to javascript at 02geek

The more you learn, the more you'll realize there's much more to learn
Ray.ph
rangana is offline   Reply With Quote
Old 06-10-2008, 09:43 AM   PM User | #3
it_mohan2002
New to the CF scene

 
Join Date: Jun 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
it_mohan2002 is an unknown quantity at this point
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
it_mohan2002 is offline   Reply With Quote
Old 06-10-2008, 10:13 AM   PM User | #4
rangana
Senior Coder

 
rangana's Avatar
 
Join Date: Feb 2008
Location: Cebu City, Philippines
Posts: 1,752
Thanks: 65
Thanked 372 Times in 365 Posts
rangana will become famous soon enoughrangana will become famous soon enough
Then, surround it with quotes.
__________________
Learn how to javascript at 02geek

The more you learn, the more you'll realize there's much more to learn
Ray.ph
rangana is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:51 PM.


Advertisement
Log in to turn off these ads.