English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

There is two radio buttons for yes and no. If user checks yes radio button then a select box should be visible and user should be able to select from list. if user check no then select box should not be visible.

PS: how do you validate date from dd-mm-yyyy using javascript??

2006-12-23 16:47:19 · 4 answers · asked by freemind 2 in Computers & Internet Programming & Design

4 answers

both are doable using javascript/ dhtml. I'll just show you the concept. You can find the real codes using google. There are plenty available on the net.

For showing and hiding select box, you put select box inside of

. Put select box inside another div or span. You'll have to use "onclick" on the radio button... So it's something like onclick="javascript:onclick_detect();"

inside onclick_detect function: use visibility atttribute of the stylesheet for div or span that contains select box.

for validating date, in the form tag, use onsubmit like this:

and inside validate(), have a code to validate the date.

2006-12-23 17:02:44 · answer #1 · answered by Anonymous · 0 0

java script code:::






html code::::;


Enter a Date (mm/dd/yyyy)
:









the above is for date validation....


and regd generate dynaic form fields.... in which lang you want

2006-12-23 16:52:52 · answer #2 · answered by sweetraskels 4 · 0 0

I don't know - I thought only the USS Enterprise could generate those.


OH.......

dynamic FORM fields...


OOPS...

2006-12-23 16:48:13 · answer #3 · answered by Anonymous · 0 0

No Idea

2006-12-23 16:49:53 · answer #4 · answered by ss1886 4 · 0 0

fedest.com, questions and answers