EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: arma on January 02, 2016, 04:03:13 AM



Title: Validation On Editable Combobox
Post by: arma on January 02, 2016, 04:03:13 AM
Hi,

Let say i have 2 rows data in editable combobox with required:true.

id:1, text: 'one'
id:2, text: 'two'

If i type '3' or 'three' and validate on submit $(this).form('validate'); it passes.

How can i set the combobox to be invalid when value is not in 1 or 2? Do i have to loop and check manually ?

Thanks


Title: Re: Validation On Editable Combobox
Post by: arma on January 02, 2016, 04:32:12 AM
Ah, i found the solution in this thread http://www.jeasyui.com/forum/index.php?topic=3364.0 (http://www.jeasyui.com/forum/index.php?topic=3364.0)