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

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -