Re: [jQuery] Re: keyup on textfields

2009-11-03 Thread Denis Caggiano
Actually, I need only 4 text fields to trigger the function and I have 10. :) But tks for the hint.

Re: [jQuery] Re: keyup on textfields

2009-10-31 Thread Karl Swedberg
Or, if the OP really wants all text fields to trigger it, he could just use $(':text').keyup( ... ) --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Oct 30, 2009, at 3:20 PM, James wrote: There are a few simple ways to do this. Here are probably the most c

Re: [jQuery] Re: keyup on textfields

2009-10-30 Thread Denis Caggiano
Tks James, You help me to write a clean code.

[jQuery] Re: keyup on textfields

2009-10-30 Thread James
There are a few simple ways to do this. Here are probably the most common: You can assign all the relevant textfields with the same class name: $(".specialFields").keyup(...); Or you can list all the IDs in the selector: $("#id_emp, #id_bol, #ema_pes, #nom_emp").keyup(...); On Oct 30, 7:12 a