Working in FF but not IE (disabling fields)

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
Lang
Forum Newbie
Posts: 5
Joined: Sun Oct 30, 2005 9:41 pm
Location: Smiths Falls
Contact:

Working in FF but not IE (disabling fields)

Post by Lang »

Code: Select all

function getOptions(){
		myForm = document.members;
		if (myForm.what.value == "Users"){
			myForm.letter.disabled = "";
			myForm.lvl.disabled = "";
		}
		else if (myForm.what.value == "Gangs"){
			myForm.letter.disabled = "";
			myForm.lvl.disabled = "disabled";		
		}else{
			myForm.letter.disabled = "disabled";
			myForm.lvl.disabled = "disabled";		
		}	
	}
What this does is when a user selects "Users" as a basis for his/her search is unlocks a letter chooser and a level chooser.
When a user selects "Gangs" in locks the level chooser and unlocks the letter chooser.
However it only works in Firefox and not Internet Explorer
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

try:

whatever.disabled = true/false;
Lang
Forum Newbie
Posts: 5
Joined: Sun Oct 30, 2005 9:41 pm
Location: Smiths Falls
Contact:

Post by Lang »

Thanks for the help, but that didn't seem to do it.
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

show me the updated code...
Post Reply