I have a bunch of note divs in the following format:
<div class="note-row" id="1">
<div class="note-row" id="2">
<div class="note-row" id="4">
<div class="note-row" id="5">
<div class="note-row" id="6">
How would I get the largest id using javascript? So far I have:
$('.note-row').each(function() {
??
});
note-rowthen you can do it using.last. ->$('.note-row').last()[0].id