How do I amend the following code to skip removing the first option in
my dropdown list i.e. I want the first option "Please select..." to
stay?
while (document.getEl ementById("myco mbo").childNode s.length 0) {
document.getEle mentById("mycom bo").removeChil d(document.getE lementById("myc ombo").childNod es[0])
}
Many thanks,
Chris
my dropdown list i.e. I want the first option "Please select..." to
stay?
while (document.getEl ementById("myco mbo").childNode s.length 0) {
document.getEle mentById("mycom bo").removeChil d(document.getE lementById("myc ombo").childNod es[0])
}
Many thanks,
Chris
Comment