[jQuery] height-based html injection

[jQuery] height-based html injection


I know this is a really dumb question, but I don't know much about
javascripting. I usually just copy/paste/modify pre-existing scripts.
How can I inject an 's' only when my div that holds search results is
past a certain height?
This is what I had:
var divHeight = $('.resultswrap').height();
if(divHeight > 100){
function onAfter() {$('a.plural').html( + this.a).append('s');}
}
I need to put an 's' after 'result' only when the div height is
stretched by more than 1 result each result being around 100px in
height. I could just put "result[s]" at the top but that looks kinda
lame.