There are two drop down lists. It is necessary to make it so that if Chelyabinsk is selected in the first list, then Grape is selected in the second, if any other value is selected, the element with the value - 0 ("Second list") is automatically selected. Now, despite the condition, it is always always selected "Grape".
$('#edit-field-sity-tid').change(function() { var SVal = $(this).find('option:selected').val(); var c = $('#edit-field-streets').find('option'); if (SVal == 710) { $('.dependent').css('display', 'block'); c.val(2).attr('selected', 'selected'); } else { c.val(0).attr('selected', 'selected'); $('.dependent').css('display', 'none'); } }); .dependent { display: block; position: relative; background: #8F8F8F; margin: 20px; color: #fff; padding: 7px; text-align: center; } .hide { display: none; } <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script> <select id="edit-field-sity-tid" name="field_sity_tid" class="form-select"> <option value="All">Элементы списка</option> <option value="708">Златоуст</option> <option value="710">Челябинск</option> </select> <select id="edit-field-streets" name="field_sity_tid" class="form-select"> <option value="0">Второй список</option> <option value="1">Каштановая</option> <option value="2">Виноградная</option> </select> <div class="dependent hide">А я тут для проверки условия))</div>