`
lt1988
  • 浏览: 17161 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

jquery and jacascript object

阅读更多

i wanna get a form use jquery selector and reset this form,when i use $("#formId").reset (),it do not works.when i serch the reason in the internet ,i find object is encapsulated bt jquery , the reset() method must be a original javascript method,so the jquery object must be transformed to a original javascript object by [0],so at last i use $("#formId")[0].reset() and success.now what i think is the other methods like submit() should use like this as i have seen one of my colleague use submit() method like my first method but success to submit()!

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics