将jquery元素转换为html元素 [英] Convert jquery element to html element

查看:96
本文介绍了将jquery元素转换为html元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个jQuery元素,但我必须将它发送到只接受HTML元素的函数。如何将jQuery元素转换为HTML元素?

I have a jQuery element but I have to send it to a function that only accepts HTML elements. How can I convert the jQuery element to an HTML element?

推荐答案

尝试 myJQueryElement.get(0) myJQueryElement [0] 。 ( get()在需要负指数时最有用,例如,如 get()。)

Try myJQueryElement.get(0) or myJQueryElement[0]. (get() is most useful when you need negative indices, for example, as described in the documentation for get().)

这篇关于将jquery元素转换为html元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆