On Wed, Jan 20, 2010 at 11:20 AM, Mircea <i...@amsterdamsat.com> wrote:
> Thanx Nathan,
> It works. It does change the class to the #family form. Is it possible
> to make it change the class to the Option element?

You mean style the option element?

function setFamily() {
  $('#family :selected').parent().andSelf()
    .css('font-family', $('#family :selected').val());
}
setFamily();
$('#family').bind("change keypress", setFamily);

http://jsbin.com/agifi/edit

Nathan

Reply via email to