Running this on chrome console (in Reddit.com)
$('.title')
Returns array like object:
n.fn.init[10]
0:span.selected.title
1:div.title
2:div.title
3:p.title
4:
:
document
length
:
10
prevObject
:
n.fn.init[1]
selector
:
".title"
__proto__
:
Object[0]
I want to select one of them and use Jquery mehtod (text()
, html()
).
But this
$('.title')[4].text();
Returns error:
VM1223:1 Uncaught TypeError: $(...)[4].html is not a function
at <anonymous>:1:16