Remove values from select list based on condition

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

I have the following in the page


    
    
    
    
                        
 

You can do it in pure JavaScript:

var selectobject = document.getElementById("mySelect");
for (var i=0; i

But - as the other answers suggest - it's a lot easier to use jQuery or some other JS library.

提交回复
热议问题