SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
Thread: Conditional Forms w/ Javascript
-
Aug 16, 2000, 11:37 #1
- Join Date
- Aug 1999
- Posts
- 4
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I'm building a form, here's what I would like to happen:
The user has to choose between 2 radio buttons. If he chooses 1, it's chosen and nothing else happens, he can continue down the form. If he chooses 2, I want 2 text boxes to be activated where he can enter in 2 different dates.
Can anyone point me in the right direction of this source code!? Thanks!
JG
------------------
Tres Dai'lla - Coffeemade Productions!
Webmaster/Producer/Artist
http://coffeemade.bombspot.com
tresstylez@hotmail.com
-
Aug 17, 2000, 04:58 #2
- Join Date
- Jun 2000
- Location
- Texas, USA
- Posts
- 597
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
this can only be done using IE5+
<BLOCKQUOTE><font size="1" face="Verdana, Arial">code/font><HR><pre>
<INPUT TYPE="button" NAME="myButton" VALUE="Submit" DISABLED>
This attribute can be attached to any <INPUT> tag. It disables the specified form element (it cannot be clicked). Note that this attribute is currently only supported by Internet Explorer 4.0x and above. A
disabled form element can be enabled via JavaScript:
document.formName.elementName.disabled = false;
[/code]
HOPE THIS helps.
Sam
Bookmarks