Easiest way to retrieve all the input elements within a page.

Code Snippet

function GetAllInputElements()
   return div.getElementsByTagName("input");

Sample Usage

var all_Ctrls = GetAllInputElements();


Actually you can search with any tag name such as div, span, p etc.

author's photo

Author : Blue Cloud

Just a normal software developer who love to write code. Developing professional software since 1999. After working in the software industry for many years, I've started my own website to share knowledges and experiences.

blog comments powered by Disqus