How to remove an item from a HTML select box using JavaScript?

I need to remove an item from a HTML select box. How to do this using JQuery or JavaScript?

Comments

  • Using JQuery,

    $("#selectBoxID option[value='yourValueName']").remove();

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion