jQuery MiniUI

标题: 行编辑下拉框怎么验证无效啊 [打印本页]

作者: wansgibo    时间: 2014-6-10 16:42:25     标题: 行编辑下拉框怎么验证无效啊

<div field="CD" width="120" headerAlign="center" allowSort="true">
                                损坏程度 <input name="CD" required="true" property="editor" class="mini-combobox"
                                    style="width:100%;"  data="LQGenders"  />
                            </div>

[attach]4655[/attach]


作者: felt    时间: 2014-6-10 17:15:18

设置combobox编辑器allowInput="true"
作者: wansgibo    时间: 2014-6-10 17:20:08

felt 发表于 2014-6-10 17:15
设置combobox编辑器allowInput="true"

加了怎么没用啊
作者: felt    时间: 2014-6-10 17:20:56

wansgibo 发表于 2014-6-10 17:20
加了怎么没用啊

你是怎么验证的
作者: wansgibo    时间: 2014-6-10 17:25:39

felt 发表于 2014-6-10 17:20
你是怎么验证的

        <div field="CD" width="120" headerAlign="center" allowSort="true">
                                                                损坏程度 <input name="CD"  property="editor" class="mini-combobox"
                                                                        style="width:100%;"  data="LQGenders" allowInput="true" />
                                                        </div>[attach]4661[/attach]


  我的没提示

作者: felt    时间: 2014-6-10 17:27:47

本帖最后由 felt 于 2014-6-10 17:29 编辑
wansgibo 发表于 2014-6-10 17:25
损坏程度
                                                        

请贴你的验证的方法
话说你这上面也没验证啊
<div field="CD" width="120" headerAlign="center" allowSort="true">
                                                                损坏程度 <input name="CD"  property="editor" class="mini-combobox"
                                                                        style="width:100%;"  data="LQGenders" allowInput="true" />

作者: wansgibo    时间: 2014-6-10 17:29:06

felt 发表于 2014-6-10 17:27
请贴你的验证的方法

//验证非空
        if (form.isValid() == false) return;
作者: felt    时间: 2014-6-10 17:30:16

wansgibo 发表于 2014-6-10 17:29
//验证非空
        if (form.isValid() == false) return;

你这上面没写验证
作者: wansgibo    时间: 2014-6-10 17:31:21

felt 发表于 2014-6-10 17:30
你这上面没写验证

OK了 我主要就是验证非空就可以。 allowInput="true" required="true"  这两个属性要一起用才可以提示出来。 谢谢了 版主




欢迎光临 jQuery MiniUI (http://miniui.com/discuss/) Powered by Discuz! X2