Dynamic Generation of fields

Reply

Join Date: Apr 2005
Posts: 14
Reputation: nandoo is an unknown quantity at this point 
Solved Threads: 0
nandoo nandoo is offline Offline
Newbie Poster

Dynamic Generation of fields

 
0
  #1
Apr 29th, 2005
Hi everyone,
I am Nandoo,I am new to this webDeveloping so plz take me ease.
I am having a problem in generation of fields dynamically.let me give the detail

My page should have a single button(with name add),whenever a click that button it should give a select list along with two text box and the text box values should be changing whenever i select the listed elements.

It would be ease for u all but please let me know how to solve i am trying for the past 3 days.
Thanks in advance.
Nandoo
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 1,655
Reputation: tgreer is an unknown quantity at this point 
Solved Threads: 35
Team Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Dynamic Generation of fields

 
0
  #2
May 18th, 2005
The typical way to do this is to create all the controls you need in the original document. You set the CSS Visibility property to "hidden" for the controls you don't want to show.

Then, code for some event (like a button click). The event handler would set the visibility property to "visible" for the controls you want to now show.

The other approach is to set the .innerText or .innerHTML property of a container element, such as a DIV.

If you search for ".innerHTML", you should find all the samples you need.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the HTML and CSS Forum


Views: 2528 | Replies: 1
Thread Tools Search this Thread



Tag cloud for HTML and CSS
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC