When I use this code...
var $row = $(this).next("tr[data-control]")
I sometimes get the row I need, but due to siblings, I might also get "prevObject" (in console log).
How do I test for prevObject?
I've tried this...
if ($row == undefined) {}
and this...
if ($row == prevObject) {}
and this...
if ($row == $(this)) {}
But none of those works.
How do I test if my var is prevObject?
Thanks.