tolppa
asked on
How do I delete an option from html select element?
How do I delete an option from a html select element? I would like to do somehing like this:
I am not able to do something like this because element exist in variable:
var selectElement= document.getElementById(idparam);
selectElement.options[5].remove();
I am not able to do something like this because element exist in variable:
$('#idvalue option[value=' + val + ']').remove();
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER