Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Javascript
using this to get name of the clicked element
brichins
Programming language:
Javascript
2021-06-30 23:25:23
0
Q:
using this to get name of the clicked element
gautham English
Code:
Javascript
2021-05-29 12:03:44
var clickedBtnID = $(this).attr('id');
1
Tags
name
get
using
click
element
Related
how to get the text of a clicked elemet by javascript
get element by tag name
target all element besides the clicked one
how to add attribute to selected element in javascript
document.title you clicked count times
get id of clicked element javascript
get selected option value
New to Communities?
Join the community