About dynamic options
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Amey_Ukadgaonkar
Posted On:   Wednesday, November 30, 2005 01:30 PM

is their in way for deleting options (of select tag) dynamically throug JS..?



and how can we detect which button user has clicked on the prompt box...e.g. ok or cancel....coz prompt box returns value user has entered, not desc of buttons he has chosen...





help will be appreciated...thank you

Re: About dynamic options

Posted By:   Axel_Richter  
Posted On:   Monday, December 5, 2005 02:50 AM

Hi,



>>is their in way for deleting options (of select tag) dynamically throug JS..?

yes, simply set them to NULL.

Example:


"http://www.w3.org/TR/html4/strict.dtd">


delete options










>>and how can we detect which button user has clicked on the prompt box

If the user clicks cancel, prompt returns NULL.



Greetings



Axel
About | Sitemap | Contact