Roman Weich schrieb:
RwL schrieb:
maybe something like this:
$('select').change(function(){
if ( $('[EMAIL PROTECTED]' + this.value + ']').not(this).length )
{
$('.formTip').show();
}
else
{
$('.formTip').hide();
}
});
Just to make sure I understand why this works... is this a correct
explanation for why ".length" is in there?
If we've found a matching value in another select element, ".length"
returns 1 or greater, so the condition is executed. If no matches, it
returns 0, so the Else condition is executed.
Thanks again,
Rob
If no element is found it returns an empty array, which (at least in
Firefox) is not false.
aw, I should read more carefully.
Yes, you're right of course. That was just the explanation why not using
length would be bad. :)