Monday, May 13, 2024
 Popular · Latest · Hot · Upcoming
74
rated 0 times [  81] [ 7]  / answers: 1 / hits: 70386  / 14 Years ago, fri, august 27, 2010, 12:00:00

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');

More From » textinput

 Answers
73
document.getElementById('mydiv').getElementsByTagName('input')

[#95780] Wednesday, August 25, 2010, 14 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
dustin

Total Points: 599
Total Questions: 105
Total Answers: 106

Location: Belarus
Member since Tue, Mar 14, 2023
1 Year ago
dustin questions
;