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
I tried using this method
$("input[id='mytime']") = jsclock();
The example code for this jquery library was
$('#mytime').jsclock();
This was working
<div id="mytime"></div>
But how to do it for a input element?
<div class="form-group">
<label for="mytime"></label>
<input type="text" class="form-control" id="mytime" value="" disabled>
</div>
My javascript file
$(document).ready(function(){
// $('#mytime').jsclock();
$("input[id='mytime']") = jsclock();
});
It should show current clocktime