[jQuery] Re: how to trigger a functionality when 2 fields are filled

2007-12-14 Thread Alexandre Plennevaux
hi karl, yes i've thought about doing it like that. It 's probably the best way to do that but i've never used custom events so i thought it might be another possibility. cheers! alex On Dec 14, 2007 4:10 AM, Karl Swedberg <[EMAIL PROTECTED]> wrote: > > Hi Alexandre, > > Could you just use th

[jQuery] Re: how to trigger a functionality when 2 fields are filled

2007-12-13 Thread Karl Swedberg
Hi Alexandre, Could you just use the .change() method and use an if statement? pseudo-code: $('input1, input2').change(function() { if ( input1.value && input2.value ) { // do your thing. } I might be misunderstanding the question, so please clarify if I've got it all wrong. :-)