Hello,
I would like to add a custom method ‘getSelectedValue’ to the jqxComboBox plugin.
What I did is :
(function ($) {
$.extend($.jqx._jqxComboBox.prototype, {
getSelectedValue: function () {
var item = this.getSelectedItem();
if (item != null) return item.value;
return null;
}
});
})(jQuery);
I can see the method inside prototype in the debugger but I can’t call the method on a combo instance.
$(‘#mycombo’).jqxComboBox(‘getSelectedValue’) and $(‘#mycombo’).getSelectedValue() don’t work.
Any help would be greatly appreciated.
Thanks in advance.