Jq level linkage determines whether the last select is selected or not when clicking on select.

jq cascading determines whether the last select is selected

when clicking on select.

the following code is not quite right. Ask for advice

<select name="" class="sel1">
    <option value="0"></option>
    <option value="1">1</option>
    <option value="2">2</option>
</select>
<select name="" class="sel2">
    <option value="0"></option>
    <option value="1">1</option>
    <option value="2">2</option>
</select>

$(function () {
       $(".sel2").click(function () {
             if($("-sharpsel1").attr("selected",false)){
                alert("");
            }
        })
    })
Feb.21,2022

$('select'). Siblings (). Is (' classname:checked')


:$(".sel1 option:selected").text()
:$(".sel1").find('option:selected').text()
:$(".sel1").val();
if(){
 alert("");
}
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3a611-4d8a9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3a611-4d8a9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?