SoFunction
Updated on 2025-03-03

Select tag drop-down list of secondary linkage cascade instance code


var options=new Array();
    $(document).ready(function(){
//Second-level linkage
        $('#ddlPages').children('option').each(function(i){
            options[i]='<option value="'+$(this).val()+'">'+$(this).text()+'</option>';
});//Put the option list into the array
$('#ddlPages option:gt(0)').remove();    //Clearly pull-down
$('#ddlSubsystems').bind('change',function(){                                                   �
            var systemname=$('#ddlSubsystems option:selected').text();
            for(var j=0;j<;j++){
                $('#ddlPages').append(options[j]);
}         }    //The option list is initialized first
$('#ddlPages option:gt(0)').each(function(i){    //Transaction exclusion
                var textname=$(this).text();
                var index=('-'+systemname);
                if(index<0){
                    $(this).remove();
                }else{
                    $(this).text((0,index));
                }
            });
$('#ddlPages').val(0);                                                                                                                       �
        });
    });