title: How to pass value to input element via jquery function
body: <p>I am using jsclock jquery library to display realtime clock on my website. But i cant seem to use the given function to pass the value to the element</p>
  
  <p>I tried using this method</p>
  
  <pre><code>$("input[id='mytime']") = jsclock();
  </code></pre>
  
  <p>The example code for this jquery library was </p>
  
  <pre><code>$('#mytime').jsclock();
  </code></pre>
  
  <p>This was working</p>
  
  <pre><code>&lt;div id="mytime"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>But how to do it for a input element? </p>
  
  <pre><code>&lt;div class="form-group"&gt;
      &lt;label for="mytime"&gt;&lt;/label&gt;
      &lt;input type="text" class="form-control" id="mytime" value="" disabled&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>My javascript file </p>
  
  <pre><code>$(document).ready(function(){
      // $('#mytime').jsclock();
  
      $("input[id='mytime']") = jsclock();
  });
  </code></pre>
  
  <p>It should show current clocktime</p>