I use the following (not working code):
var height = $("#rows").children().get(index).height();
The thing is that .get(index) returns the DOM element. So after that the height() method does not exist.
.get(index)
How can I work around this problem?
use eq()
var height = $("#rows").children().eq(index).height();
or
var height = $("#rows").children().get(index).clientHeight;
NOTE: get() will be converted to javascript object so there is no height() method in javascript
get()
Copyright © 2021 Jogjafile Inc.
use eq()
or
NOTE:
get()
will be converted to javascript object so there is no height() method in javascript