Remove values from select list based on condition

后端 未结 18 2241
温柔的废话
温柔的废话 2020-12-05 13:15

I have the following in the page


  
  
  
  
                      
 

the non-jQuery solution would be this

if ( frm.product.value=="F" ){
    var elem = document.getElementById('A');
    elem.parentNode.removeChild(elem);
    var elem = document.getElementById('C');
    elem.parentNode.removeChild(elem);
}

提交回复
热议问题