I go through a list of classes using the filter function. if the drop down is empty then an error styling is added.
problem. I would like to hide and show other div id's if the condition is fulfilled, i.e if all the dropdowns contain a selected value
This is my code for adding styling to an empty dropdown
$(".dropdown_select").filter(function(){
return $(this).val() == "";
}).css("border-color", "#FF0000");
But how do i go about hiding and showing a other two div id's?? i.e only if all dropdowns are filled, i would like to
$(".step-2").fadeIn("slow");
$(".step-1").fadeOut("slow");