I have one html form that uses 7 list boxes. I want to clear mulitple selected items in one list box not all. How can I do that?
Thanks
Ezsas
JavaScript
Last Comment
Mangagm
8/22/2022 - Mon
hielo
try:
function clearSelect(s){ s = document.getElementById(s); if(s) s.selectedIndex=-1;}so if you want to clear:<select id='countries' ...>...</select>then call it as:clearSelect('countries')
Open in new window