Hello I use this code to remove empty input text fields from my form:
$('input:text[value=\"\"]', '#submForm').remove();
How do I achieve the same but with empty dropdown values like the below one?
<select><option value=""></option></select>
I need to remove the empty dropdown with the jQuery remove();
How do I do that?
Thank you!
how about this (I don’t think you can use it with the attributes because the value is on the option. Do you want to remove the option or the select item?