Created
July 30, 2013 02:09
-
-
Save pasali/6109622 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<meta charset="utf-8"> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.min.js"> | |
</script> | |
<script type="text/javascript" src="jquery.chained.js" charset="utf-8"></script> | |
</head> | |
<body> | |
<select id="mark" name="mark"> | |
<option value="">--</option> | |
<option value="bmw">BMW</option> | |
<option value="audi">Audi</option> | |
</select> | |
<select id="series" name="series"> | |
<option value="">--</option> | |
<option value="series-3" class="bmw">3 series</option> | |
<option value="series-5" class="bmw">5 series</option> | |
<option value="series-6" class="bmw">6 series</option> | |
<option value="a3" class="audi">A3</option> | |
<option value="a4" class="audi">A4</option> | |
<option value="a5" class="audi">A5</option> | |
</select> | |
<script language="JavaScript" type="text/javascript"> | |
$("#series").chained("#mark"); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment