title: Video Current time giving undefined
body: <p>Hello I have dynamic videos  which I tried to get the current video time but I seem to be getting undefined which i don't know why. I fire a function using on time update javascript event, however when i alert this var ok=$(e).attr('id'); i get the videos id but i dont know why when i try to get video current time i get undefined as value, these is my code dont know where i am getting it wrong.</p>
  
  <pre><code>      &lt;script type='text/javascript'&gt;
   function men(e){
      var ok = $(e).attr('id');
       var ol = $(e).attr('id');
      // alert(ol[0].currentTime); --- GIVES ME UNDEFINED
      $.ajax({
            type : 'POST',
             url : 'updatetime.php', 
            data :  {ok: ok, om: om}, 
              success : function(r)
             {
  
             }
      });
   }
   &lt;/script&gt;
  
       &lt;?php
  $tl="channel";
  $ooa="playing";
  $played="played";
  $timeline = mysqli_query($con, "SELECT * FROM plays WHERE streamers_type ='$tl' AND played !='$played' GROUP BY streamers_id ORDER BY id ASC") or die ();
      while($row = mysqli_fetch_array($timeline)) {
      $id = $row['id'];
      $file1 = $row['file1'];
      $video_name = $row['video_name'];
      $video_type = $row['video_type'];
      ?&gt;  
  
    &lt;video class="uopi spinal" id="&lt;?php echo $id ?&gt;"  style="height:180px; width:100%!important;" autoplay muted onended="run(this)" ontimeupdate="men(this)"&gt;&lt;source src="plays/&lt;?php echo $file1 ?&gt;" type="&lt;?php echo $video_type ?&gt;"&gt;&lt;/video&gt;
  
              &lt;?php } ?&gt;
  </code></pre>