I have a little chat app going on. I would like to scroll down to the first unread message. This is what I have:
for i in data.conversation
$('#chatBox').append("<div class='rrr'>i.message + "-" + i.read</div>")
data.conversation
is an object that has a message and a read value. How do I scroll #chatBox
all the way down to where i.read
equals unread
?