Wednesday, January 20, 2010

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

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?

<option class="option" value="Georgia" label="Georgia">Georgia</
option>
<option class="option" value="Times New Roman" label="Times New
Roman">Times New Roman</option>
<option class="option" value="HelveticaNeue-Light" label="Helvetica
Neue Light">Helvetica Neue Light</option>

I've tryed with the following and it does not work:

$(".option").bind("change keypress", setFamily);
$("option").bind("change keypress", setFamily);

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate