I using jquery how do i remove the one of the elements of the select dropdown where the value
<option value=" ">undefined</option>
i tried
$("#subType option[value=' ']").remove();
$("#subType option[value='']").remove();
None of them worked.
Please advise.
But note that this will also remove options like:
You can read about any method in the API documentation. It is divided into categories which makes finding easier, e.g. traversing, manipulation, etc.