I am having 1000 tr in table.i want to find tr using classname in ie.what is Efficient way to find tr using classname in ie
Asked
Active
Viewed 38 times
-5
-
1Possible duplicate of [Get class name using jQuery](http://stackoverflow.com/questions/2400386/get-class-name-using-jquery) – IlGala Dec 09 '15 at 11:17
-
"1000 records in a table in IE" already sounds rather inefficient – James Thorpe Dec 09 '15 at 11:21
-
You surely just doesn't need to 'get' all of them... – A. Wolff Dec 09 '15 at 11:22
1 Answers
-1
You can use either DOM's native function getElementsByClassName('classname')
or jQuery selector $('.classname')
to find the target element.
See getElementsByClassName()
See selectors in jQuery

abhishekkannojia
- 2,796
- 23
- 32
-
4The **DOM**'s function, not JavaScript's. And answering rubbish, zero-effort, unclear, soon-to-be-closed-and-deleted questions isn't useful. – T.J. Crowder Dec 09 '15 at 11:21
-
2`getElementsByClassName('.classname')` will look for elements with class `..classname` – A. Wolff Dec 09 '15 at 11:23