removeChild() works but issues with null values

69 views Asked by At

I was given this piece of code on here which works great to remove some selected values but for some reason I still get document.choice.field1.options[...].value is null or not an object I basically don't want null or blank values, the code below worked but when values are changed in a drop down it doesn't work. Can someone please help?

 document.choice.field1.removeChild(document.choice.field1.options[index])
0

There are 0 answers