I'm trying to check if a jquery object is null to use it this way
var reminder_history_div = $(".history-container");
if(reminder_history_div)
reminder_history_div.scrollTop(reminder_history_div[0].scrollHeight);
but reminder_history_div
is not null or empty its and object ,with some info ,what is the correct way to check if is empty?maybe:
if(reminder_history_div.length > 0)