Thanks a lot, Karl. Your code dit it. Now are several events (like key strokes and checkbox changes) for which the same code must be run. So, I would like to retrieve the siblings from within a function.
The problem I encounter with the code below is how to retrieve in jQuery the "caller" argument passed to the function ? Is there some general syntax to read variables ? $(':text') .focus( function { UpdateFooter(this) } ) .change( function { UpdateFooter(this) } ) $(':checkbox') .change( function { UpdateFooter(this) } ); function UpdateFooter (caller) { $(caller).parent().nextAll().find('input:text').each(doSomething ()); // Which syntax to read the parameter ? } On 15 oct, 19:31, Karl Swedberg <k...@englishrules.com> wrote: > Provided that all the text inputs located after it are within the same > <ul>, this should do it: > > $('input:text').change(function() { > $(this).parent().nextAll().find('input:text').doSomething(); > > }); (skipped)