Title: Validatebox - dynamically adding validtype Post by: devnull on November 30, 2015, 09:30:50 PM I have a combobox that has a single validType set in HTML, then after loading I append other validTypes however only the one that was initially added through HTML appears to activate:
Code: <input id="cbox" class="easyui-combobox" data-options="validType:'test1'"> How can I get the object to reload the validType so that test2 is also activated ? Title: Re: Validatebox - dynamically adding validtype Post by: stworthy on November 30, 2015, 11:41:21 PM Here is the extended method to set the 'validType' property for all the components inherited from textbox.
Code: $.extend($.fn.textbox.methods, { Usage example: Code: $('#cbox').combobox('setValidType', ['test1','test2']); |