How do I display a second drop down that is dependent on the answer in the first drop down, then after the second is answered a button is displayed.
I have found a few examples of displaying the second drop down, but none on add a third element like a button.
I know how I am going to populate the drop downs with php/mysql, but I am new to jquery.
[UPDATE]
This is what I have so far
HTML
<select id="source">
<option>Select</option>
<option>Company</option>
<option>City</option>
<option>State</option>
</select>
<select id="source2a" class="select">
<option>Sort by</option>
<option>Sort A-Z</option>
<option>Sort Z-A</option>
</select>
<select id="source2b" class="select">
<option>Sort by</option>
<option>Sort A-Z</option>
<option>Sort Z-A</option>
</select>
<select id="source2c" class="select">
<option>States</option>
<option>State 1</option>
<option>State 2</option>
<option>Etc.</option>
</select>
CSS
.select {display: none;}
Javascript
var i = 0;
$(document).ready(function(){
$('#source').change(function () {
if ($('#source option:selected').text() == "Company"){
$('.select').hide();
$('#source2a').show();
} else if ($('#source option:selected').text() == "City"){
$('.select').hide();
$('#source2b').show();
} else if ($('#source option:selected').text() == "State"){
$('.select').hide();
$('#source2c').show();
} else {
$('.select').hide();
} });
});