Gets or sets the value of the timepicker.
Parameters
Name | Type | Description |
---|---|---|
value | {string} | The value that needs to be selected. |
Examples
Get
<button class="gj-button-md" onclick="alert($timepicker.value())">Get Value</button>
<hr/>
<input id="timepicker" width="312" />
<script>
var $timepicker = $('#timepicker').timepicker();
</script>
Set
<button class="gj-button-md" onclick="$timepicker.value('11:00')">Set Value</button>
<hr/>
<input id="timepicker" width="312" />
<script>
var $timepicker = $('#timepicker').timepicker();
</script>