openDialog 打开的页面,js调用相关组件报错问题

提问 已结 2 5260
悬赏:20飞吻
在openDialog 打开的页面里写js,只能用原生jquery的方式调用组件,不能用框架的api操作组件
....//form表单和引用的js文件,这里就不粘贴
$('#ptext').val("test123");//正常
$('#ptext').iTextbox('getValue');//报错
这只是举个列子,这样使用api方式就会报错。
错误:
Uncaught TypeError: Cannot read property 'textbox' of undefined
at getValue (topjui.core.min.js:7)
at m.fn.init.a.fn.textbox (topjui.core.min.js:7)
at m.fn.init.a.fn.iTextbox (topjui.core.min.js:16)
at eval (eval at <anonymous> (jquery.min.js:2), <anonymous>:3:14)
at eval (<anonymous>)
at jquery.min.js:2
at Function.globalEval (jquery.min.js:2)
at m.fn.init.domManip (jquery.min.js:4)
at m.fn.init.append (jquery.min.js:4)
at m.fn.init.<anonymous> (jquery.min.js:4)
回帖
回帖须知