当前位置:网站首页>How JQ gets the ID name of an element
How JQ gets the ID name of an element
2022-06-27 05:03:00 【Front cut zz】
html:
<div class="box" id="mybox"></div>
To get the id value , Can pass jquery Of attr() Method .
Examples are as follows :
var idName = $('.box').attr('id')
alert(idName)
Pop up results :

expand :
attr() Method : Used to set or return the attributes and values of the selected element .
alert() Method : Used to display with a specified message and a OK Button warning box .
边栏推荐
- 013 C语言基础:C指针
- 009 C语言基础:C循环
- Tsinghua University open source software mirror website
- 机械转码日记【17】模板,STL简介
- Quick sort (non recursive) and merge sort
- Nignx configuring single IP current limiting
- EPICS记录参考5 -- 数组模拟输入记录Array Analog Input (aai)
- [unity] button of UI interactive component & summary of optional base classes
- 007 C语言基础:C运算符
- 009 basics of C language: C loop
猜你喜欢
![[station B up dr_can learning notes] Kalman filter 1](/img/18/ee21d31f6a118e4e4ad466b55361cc.gif)
[station B up dr_can learning notes] Kalman filter 1

Office VR porn, coquettish operation! The father of Microsoft hololens resigns!

ES6 0622 III

Edge loads web pages in IE mode - edge sets ie compatibility
![[BJDCTF2020]The mystery of ip](/img/f8/c3a7334252724635d42c8db3d1bbb0.png)
[BJDCTF2020]The mystery of ip

Deep dive kotlin synergy (XV): Test kotlin synergy

es6 0622三
![[BJDCTF2020]The mystery of ip](/img/f8/c3a7334252724635d42c8db3d1bbb0.png)
[BJDCTF2020]The mystery of ip

深潜Kotlin协程(十五):测试 Kotlin 协程

重映像(STM32)
随机推荐
QChart笔记2: 添加鼠标悬停显示
012 C language foundation: C array
[BJDCTF2020]The mystery of ip
Almost because of json Stringify lost his bonus
Reading graph augmentations to learn graph representations (lg2ar)
py2neo基本语法
007 basics of C language: C operator
Cultural tourism light show breaks the time and space constraints and shows the charm of night tour in the scenic spot
Golang Hello installation environment exception [resolved]
014 C language foundation: C string
unity点光源消失
Pycharm 中 Terminal 无法进入 venv 环境的问题
021 C语言基础:递归,可变参数
从某种意义来讲,互联网业已成为了一个孵化器,一个母体
In a sense, the Internet has become an incubator and a parent
Pytest框架的执行规则
认知篇----2022高考志愿该如何填报
stm32单片机引脚_如何将单片机的引脚配置为上拉输入
Learn crypto from Buu (Zhou Geng)
Flink production problems (1.10)