REALLY basic stuff here. Pretty new to jQuery. I'm trying to add two values (these happen to be the total height of two sidebars. I use alert for each and receive the correct height. But, when I try to add these together, I get the [object Object] return.
To make this utterly basic, which is where I am, what am I not doing? It seems logical enough but doesn't work.
var sbheight1 = jQuery(".sidebar1").height(); var sbheight2 = jQuery(".sidebar2").height(); var sbtotal = jQuery (sbheight1 + sbheight2); alert (sbtotal);
Help appreciated. Keep it simple for this humble beginner.