jQuery: how to change tag name?

前端 未结 17 927
無奈伤痛
無奈伤痛 2020-11-28 07:37

jQuery: how to change tag name?

For example:


    $1

I need

$1
<
17条回答
  •  情歌与酒
    2020-11-28 08:41

    No, it is not possible according to W3C specification: "tagName of type DOMString, readonly"

    http://www.w3.org/TR/DOM-Level-2-Core/core.html

提交回复
热议问题