Wednesday, January 20, 2010

Re: [jQuery] Re: Bindind keydown function to a form - submit on keydown (value change)

On Wed, Jan 20, 2010 at 11:20 AM, Mircea <info@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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate