My pad
Knowing is not enough. We must share..
Tuesday, July 12, 2011
Get all elements in div using javascript
Labels:
Javascript
Email This
BlogThis!
Share to X
Share to Facebook
Share to Pinterest
In javascript wee can get all html elements using getelemensbyname. Here is the sample for that
div = document.getElementsById('sample');
Elements = div.getElementsByName("*");
This will return all html elements with in a div.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment