I'm trying to get the children of the nth element returned by a jquery call. For example:
var kids = $('div')[7].children();
However, I keep getting this error with respect to children()
:
Uncaught TypeError: object is not a function
Can someone explain why this happens? children()
works fine as long as I'm not calling it on an indexed element.