Plugins Form Datetimebox
# jQuery EasyUI Form Plugin β Datetimebox
* * jQuery EasyUI Plugin](#)
* * *
Extended from $.fn.datebox.defaults. Overwrite the default defaults via $.fn.datetimebox.defaults.
Similar to the datebox, the datetimebox allows users to select a date and time with a specified format. It adds a timespinner component to the dropdown panel.
!(#)
## Dependencies
* datebox
* timespinner
## Usage
Create a datetimebox from markup.
Create a datetimebox using javascript.
$('#dt').datetimebox({ value: '3/4/2010 2:3', required: true, showSeconds: false});
## Properties
The properties extend from datebox, below are the added properties for datetimebox.
| Name | Type | Description | Default Value |
| :--- | :--- | :--- | :--- |
| showSeconds | boolean | Defines if the seconds information is displayed. | true |
| timeSeparator | string | The time separator between hours, minutes, and seconds. This property is available since version 1.3. | : |
## Methods
The methods extend from datebox, below are the overwritten methods for datetimebox.
| Name | Parameter | Description |
| :--- | :--- | :--- |
| options | none | Returns the options object. |
| spinner | none | Returns the timespinner object. |
| setValue | value | Sets the datetimebox value. Code example: $('#dt').datetimebox('setValue', '6/1/2012 12:30:56');// set datetimebox valuevar v = $('#dt').datetimebox('getValue');// get datetimebox value alert(v); |
* * jQuery EasyUI Plugin](#)
YouTip