Problem with selected subcategory when editing Category items

后端 未结 3 1070
萌比男神i
萌比男神i 2021-01-28 04:54

I want to item\'s subcatory selected when editing category:



        
3条回答
  •  离开以前
    2021-01-28 05:16

    I have solved the problem by:

    $selected = $d == $subcat ? " selected " : "";
    $text .= '';
    
    function sQuery($x, $y) {
    
     $selected = $x == $y ? " selected " : "";
     return $selected;                                   
    }
    

提交回复
热议问题