title: Automatically Enable Submit button at particular time from server using PHP JS
body: <p>What I'm looking for is this.
  I have a simple PHP page with a <b>submit</b> button that is disabled by default.
  I want the submit button to be enabled at a particular time for example 02:00:00</p>
  
  <p>With PHP i can get the time from server with     <code>date("h:i:s")</code> which i am using in a JS variable.
   like 
      <code>var time = "&lt;? php echo date("h:i:s") ; ?&gt;" ;</code></p>
  
  <p>Now by using     <b>setInterval()</b> method every millisec i am trying to compare the value of "time" variable with the 
  particular time i want the button to be enabled. 
  like     <code>if(time=="02:00:00")
  {
  button.disabled=false;
  }</code></p>
  
  <p>But the problem is "time" variable should also dynamically change to meet the conditions otherwise nothing will happen.I can't get any simple solution.Do i require AJAX for this?</p>
  
  <p>Any help will be appreciated :) 
  Thanx!</p>