I have the following code:
Which disables form element 'p_complete' is the third option is selected from this drop down. What I need to do is disable that element if the first, second or third option is selected.PHP Code:onchange="p_complete.disabled=!(this.selectedIndex==2)"
Meaning something like:
...but of course, obviously this doesn't work or I wouldn't be posting here.PHP Code:onchange="p_complete.disabled=!(this.selectedIndex==0 or this.selectedIndex==1 or this.selectedIndex==2)"
Does anyone have an answer?





Bookmarks