I have an if statement on my website which does commands when the page is under a certain size. there is one small problem. if the page size is over 1000 it automatically says the if statement is not true and goes to the else. my attempts are bellow
if($("body").css("width") < 700 + "px")
I have tried a plain < and I have also done <= I'm kinda new to jquery, all help would be kindly appreciated.