'use strict'; wp.customize.controlConstructor['arrival-buttonset'] = wp.customize.Control.extend({ ready: function ready() { 'use strict'; var control = this; // Change the value this.container.on('click', 'input', function () { control.setting.set(jQuery(this).val()); }); } });