Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script class="jsbin" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
<!--[if IE]>
  <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<style>
  article, aside, figure, footer, header, hgroup, 
  menu, nav, section { display: block; }
</style>
</head>
<body>
first stage A <select name="first-stage-A">
                <option value=""></option>
                <option value="first-stage-1-A-1">first-stage-A-1</option>
                <option value="first-stage-1-A-2">first-stage-A-2</option>
                <option value="first-stage-1-A-3">first-stage-A-3</option>
                <option value="first-stage-1-A-4">first-stage-A-4</option>
              </select><br />
first stage B <select name="first-stage-B">
                <option value=""></option>
                <option value="first-stage-1-B-1">first-stage-B-1</option>
                <option value="first-stage-1-B-2">first-stage-B-2</option>
                <option value="first-stage-1-B-3">first-stage-B-3</option>
                <option value="first-stage-1-B-4">first-stage-B-4</option>
              </select><br />
second stage A <select name="second-stage-A">
                 <option value=""></option>
                 <option value="second-stage-A-1">second-stage-A-1</option>
                 <option value="second-stage-A-2">second-stage-A-2</option>
                 <option value="second-stage-A-3">second-stage-A-3</option>
                 <option value="second-stage-A-4">second-stage-A-4</option>
               </select><br />
second stage B <select name="second-stage-B">
                  <option value=""></option>
                  <option value="second-stage-B-1">second-stage-B-1</option>
                  <option value="second-stage-B-1">second-stage-B-2</option>
                  <option value="second-stage-B-1">second-stage-B-3</option>
                  <option value="second-stage-B-1">second-stage-B-4</option>
               </select>
</body>
</html>
 
$(function() {
    $( "select[name='first-stage-A']" ).one("change",function() {
        $( "select[name='first-stage-B']" ).prop('disabled', true);
    });
});
$(function() {
    $( "select[name='first-stage-B']" ).one("change",function() {
        $( "select[name='first-stage-A']" ).prop('disabled', true);
    });
});
$(function() {
    $( "select[name='second-stage-A']" ).one("change",function() {
        $( "select[name='second-stage-B']" ).prop('disabled', true);
    });
});
$(function() {
    $( "select[name='second-stage-B']" ).one("change",function() {
        $( "select[name='second-stage-A']" ).prop('disabled', true);
    });
});
$(function() {
    $( "select[name='first-stage-A']" ).one("change",function() {
        $( "select[name='second-stage-B']" ).prop('disabled', true);
    });
});
$(function() {
    $( "select[name='first-stage-B']" ).one("change",function() {
        $( "select[name='second-stage-A']" ).prop('disabled', true);
    });
});
Output

This bin was created anonymously and its free preview time has expired (learn why). — Get a free unrestricted account

Dismiss x
public
Bin info
anonymouspro
0viewers