I'm trying to see if there are any elements inside one div, and also, if there is more than one element in another div. If so, I want some things to happen. I've gotten errors running my script (not a valid property) and more of my js script doesn't get executed if it's below this. so, other than moving this script down my js page, what are my options? My logic seems fine, just the error bothers me.
var firstDiv = $('.firstDiv');
var secondDiv = $('.secondDiv');
if( (secondDiv).html().length > 0 || $(firstDiv).html().length > 1 ){
make stuff happen
}