jquery.AreYouSure
jquery.AreYouSure copied to clipboard
Better performance getValue for select
It looks like that case is needed for compatibility with multi-selects. I agree it needs to be optimized though. Perhaps this instead? Note - untested, just off the top of my head.
$field.find('option:selected').each(function() {
val += $(this).val();
});
val = $field.val(); will be enough for multiselects
Alright, thanks. :)