/    Sign up×
Community /Pin to ProfileBookmark

Drop down menu listing

Hi all,

I have two drop down boxes next to each other with the same options

<select name=”view” class=”style2″>
<option value=”no” selected>N/A</option>
<option value=”forestview”>Forest View</option>
<option value=”seaview”>Sea View</option>
<option value=”lakeview”>Lake View</option>
<option value=”mountainview”>Mountain View</option>
</select>

I want the second one to be disabled when first one is N/A.
If any other options are chosen in the first one I want the second one has all options except the option which is chosen on the first one.

For example:

if option Forest View is chosen in the first drop down menu. I want the second drop down appear like following:

<select name=”view2class=”style2″>
<option value=”no” selected>N/A</option>
<option value=”seaview”>Sea View</option>
<option value=”lakeview”>Lake View</option>
<option value=”mountainview”>Mountain View</option>
</select>

Any idea?

Thanks

Ceyhun

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@telmessosauthorAug 30.2006 — Nobody knows?
×

Success!

Help @telmessos spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.29,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...