title: how to get the jquery id value using php?
body: <pre><code>&lt;script&gt;
  function startTimer(duration, display) {
      var timer = duration,
          minutes, seconds;
  
      interval = setInterval(function() {
          minutes = parseInt(timer / 60, 10)
          seconds = parseInt(timer % 60, 10);
  
          minutes = minutes &lt; 10 ? "0" + minutes : minutes;
          seconds = seconds &lt; 10 ? "0" + seconds : seconds;
  
          display.text(minutes + ":" + seconds);
  
          if (--timer &lt; 0) {
              alert("Time has ended");
              $("#registration-form").submit()
              clearInterval(interval);
          }
      }, 1000);
  
      return new Date();
  }
  
  jQuery(function($) {
      s = 10;
      var Minutes = 60 * s,
          display = $('#time');
  
      var startDate = startTimer(Minutes, display);
  
      $('button').click(function() {
          var now = new Date();
          var seconds = (now.getTime() - startDate.getTime()) / 1000;
          $('#runtimes').append('&lt;p&gt;' + seconds + '&lt;/p&gt;');
      })
  });
  
  &lt;/script&gt;
  &lt;div class="col-md-4"&gt;
  
      &lt;div class="test"&gt;Time Left &lt;span id="time"&gt;&lt;/span&gt;min&lt;/div&gt;
  &lt;/div&gt;
  
  &lt;form name="frmRegistration" id="registration-form" method="post" action="index1.php"&gt;
    &lt;div id="runtimes" name="runtime"&gt;&lt;/div&gt;
  &lt;button&gt;Get run time&lt;/button&gt;
  
  &lt;/form&gt;
  </code></pre>
  
  <p><a href="https://jsfiddle.net/aruncool/vj84mc40/" rel="nofollow">https://jsfiddle.net/aruncool/vj84mc40/</a> 
   in the link  displays the value of the already runned time on button click i need to pass the div id value through post and get it into another page and insert the value into db but it is not passing value through the post help me how to get the div id value   </p>