function setFamily() { $('#family').css('font-family', $('#family :selected').val()); } $().ready(function() { setFamily(); $('#family').bind("change keypress", setFamily); }
As a bonus, this will work if they press the first letter of the option they're selecting - it's all good. :) Nathan