Score
0
Watch 253 Star 472 Fork 257

稻米 / LigerUIJavaScript

Uncaught Error: Syntax error, unrecognized expression: #[object HTMLInputElement] .togglebtn

Open
youjoy  Opened this issue

Uncaught Error: Syntax error, unrecognized expression: #[object HTMLInputElement] .togglebtn jquery-1.10.2.min.js:3

at.error jquery-1.10.2.min.js:3

mt jquery-1.10.2.min.js:3

kt jquery-1.10.2.min.js:3

at jquery-1.10.2.min.js:3

x.fn.extend.find jquery-1.10.2.min.js:4

x.fn.x.init jquery-1.10.2.min.js:3

x jquery-1.10.2.min.js:3

$.ligerui.controls.Form.ligerExtend._render ligerui.all.js:7039

liger.core.UIComponent ligerui.all.js:453

$.ligerui.controls.Form ligerui.all.js:6987

(anonymous function) ligerui.all.js:194

x.extend.each jquery-1.10.2.min.js:3

x.fn.x.each jquery-1.10.2.min.js:3

window.liger.$.ligerui.run ligerui.all.js:178

$.fn.ligerForm ligerui.all.js:6768

getGroupForm group:86

(我的代码如下:

var _groupForm = $("<form id="groupForm"></form>");

window.grpForm = _groupForm.ligerForm({

        fields: [

            {name: 'id', type:'hidden'},

            {display: '用户组名', name: 'groupname', newline: true },

            {display: '备注', name: 'notes', type:'textarea', newline: true }

        ]

    });

)

(anonymous function) ligerui.all.js:18474

x.event.dispatch jquery-1.10.2.min.js:4

v.handle jquery-1.10.2.min.js:4

105553 wancaibida 1578917724 total 3 participants

Comments (2)

Scott Yan 2014-10-22 15:00

你贴出来的代码太少了, 仅调用ligerForm是不会报错的.

105553 wancaibida 1578917724
大丈夫没问题 2015-07-23 20:43

用div元素创建Form不会报错,用form元素创建就会报错.

Sign in to comment

Assignees
Labels
Not set
Projects
Milestones
Branches
Planed to start
Not set
Planed to end
Not set
Top level
Priority
JavaScript
1
https://gitee.com/ligerui/LigerUI.git
git@gitee.com:ligerui/LigerUI.git
ligerui
LigerUI
LigerUI

Search

231008 48f1a665 1899542 231017 9a6720c6 1899542