> if [EMAIL PROTECTED]() < 5 then .addClass('S')
> if [EMAIL PROTECTED]() > 10 then .addClass('L')
> else .addClass('M')

> http://donkeyontheedge.com/jqtest/(I'm looking at this in Firefox)

This version is sufficiently obscure that it will impress and astound
your friends:

$("input:submit").each(function(){
  $(this).addClass("SML".charCodeAt(this.value.length%5)||"L");
});

Assuming I did it right...

Reply via email to