Get all input fields inside div (without JS library)

Viewed 63769

What's the easiest way to get all input fields inside a div without using a javascript library like jQuery? Similar to this jQuery snippet:

var inputs = $('#mydiv :input');
6 Answers
Related