Skip to content

ShowOn Option

Ryan Segura edited this page Feb 4, 2016 · 1 revision

Type: String
Since: 2.5
Default: button or focus only
Set the menu to open on both clicking the button and focusing on the associated input field.

Set the option upon init.

$('.selector').MonthPicker({ ShowOn: 'both' });
Get or set the option, after init.
//getter
var ShowOn = $('.selector').MonthPicker('option', 'ShowOn');

//setter
$('.selector').MonthPicker('option', 'ShowOn', 'both' );