How to get four following text inputs after each checkbox?

Posted by Richard Knop on Stack Overflow See other posts from Stack Overflow or by Richard Knop
Published on 2011-01-13T14:17:26Z Indexed on 2011/01/13 14:53 UTC
Read the original article Hit count: 144

Filed under:
|

I am traversing checkboxes like this:

$('.day').each(function() {
// here I need to get the following 4 text inputs in the HTML 
    // and set some attributes on them      
});

After every checkbox there are four text input fields (there are also some div, span tags for CSS around them). So inside the loop above I need to get four text input fields that follow the checkbox in the HTML source so I can set some attributes on them.

How would I go about that?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery