0
I’m trying to take out all the option's of a select I have, but I’ve used up all the code of the jQuery but they don’t come out. I’m making a filter where the person will select a city and after selecting jQuery makes a request Ajax to the PHP that returns cities to make some options a second select. This he usually does, but in case the person is in the third select and change the first for example (city) so it has to restart the other filters, zeroing the option's second and third, and that’s what I’m not getting.
I’ve tried to:
$("#profissionalFiltro").find('option:not(:first)').remove();
$("#profissionalFiltro option").remove();
$("#profissionalFiltro").empty();
But none solved.
