I have the following code:
$('[name^=business_] option:selected').each(function(){
var bus = $(this).text();
alert(bus);
});
This brings back the selected values of all the dropdowns with the name beginning with business_ - this is fine.
What I need is, if none of the dropdowns have a selected value equal to or higher than 1 then return an alert.
But I cannot fathom how to achieve this, I've tried looking at adding the values together but no joy - any pointers welcome.