Is there any way to Optimize the below lines of code?
$('#state').children('option:not(:first)').remove();
$('#city').children('option:not(:first)').remove();
$('#branch').children('option:not(:first)').remove();
$('#branchAddress').children('option:not(:first)').remove();
I have tried adding all the fields by comma seperated, but it is not working.
Please help to optimize the above code.
selectelements if so plz show the html (or at least the selects)