How can I get DOM elements by classes, identifiers, selectors ( div > .my-i ) and properties, for example, in jQuery?
For example:
<div class="myClass" style="width:200px"> <span id="pop">test</span> <div> <i>aaa</i> <i class="my-i">bbb</i> <i class="my-i">ccc</i> </div>
I need to get:
- 200px class value
- text 'test' by id
- all class = "my-i"
What is the best way?
angular
aaaaaaaaax10 Nov 23 '16 at 8:28 2016-11-23 08:28
source share