javascript - Comparison Operators - Greater than or Equal to - Not Working -
just started using jquery recently. (fairly recently, suppose...) doing wrong here?
var userdate = new date(); if(userdate.gethours() => 12) { var post = $('p[title="test"]'); post.text('would @ time?'); }
the condition flipped.
var userdate = new date(); if(userdate.gethours() >= 12) { var post = $('p[title="test"]'); post.text('would @ time?'); }
Comments
Post a Comment