How can i get the hasClass of click target?

R P

I have this code:

$('.errorbox').click(function(event){
    console.log(event.hasClass('disabled'));
});

Anybody know why event is not returning the class of the item i am clicking?

Daniel Yu
$('.errorbox').click(function(event){
    console.log(event.currentTarget.hasClass('disabled'));
});

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

How I can get list item values when I click on list view

분류에서Dev

How can I get the specific values I selected from SQLite Database? When I click on the button the app jut crashes

분류에서Dev

How can I enable right click in jquery?

분류에서Dev

My Intent.Extras is always null when I click a notification. How can I get the Intent data?

분류에서Dev

How can i target an individual item in a titanium alloy listview?

분류에서Dev

How can I target third child level of parent in jQuery?

분류에서Dev

How can I stack wildcards to target specific files?

분류에서Dev

How can I automatically target the output of a download script

분류에서Dev

How can I get a RejectedExecutionException

분류에서Dev

How can I get a solution for this?

분류에서Dev

How can I get $_GET values to a variable

분류에서Dev

How can i render partial view as modal popup on button click?

분류에서Dev

How can I rebind .click() functions after .load()?

분류에서Dev

How do I click button and get excel file by C#?

분류에서Dev

How can I get an array from an If statement?

분류에서Dev

How can i get request in Filter

분류에서Dev

How can I get SSRS to create subheadings?

분류에서Dev

How can I get the CurrentSite object in Orchard?

분류에서Dev

How can I get FacetFilter work properly?

분류에서Dev

How can I get the type of a Type?

분류에서Dev

How can I get memory card information?

분류에서Dev

How can I get an accurate length of a BigInteger?

분류에서Dev

How can I get the var of a multimethod?

분류에서Dev

How can I get the source code of a command?

분류에서Dev

How can I add per-target UIAppFonts to a shared Info.plist file at build time

분류에서Dev

How do I get the first two closest numbers to a target from an array using lodash?

분류에서Dev

AngularJS - How can I get data from GET method

분류에서Dev

How can I get the name of the file I'm uploading

분류에서Dev

How can I pause a loop until I get a users input?

Related 관련 기사

  1. 1

    How I can get list item values when I click on list view

  2. 2

    How can I get the specific values I selected from SQLite Database? When I click on the button the app jut crashes

  3. 3

    How can I enable right click in jquery?

  4. 4

    My Intent.Extras is always null when I click a notification. How can I get the Intent data?

  5. 5

    How can i target an individual item in a titanium alloy listview?

  6. 6

    How can I target third child level of parent in jQuery?

  7. 7

    How can I stack wildcards to target specific files?

  8. 8

    How can I automatically target the output of a download script

  9. 9

    How can I get a RejectedExecutionException

  10. 10

    How can I get a solution for this?

  11. 11

    How can I get $_GET values to a variable

  12. 12

    How can i render partial view as modal popup on button click?

  13. 13

    How can I rebind .click() functions after .load()?

  14. 14

    How do I click button and get excel file by C#?

  15. 15

    How can I get an array from an If statement?

  16. 16

    How can i get request in Filter

  17. 17

    How can I get SSRS to create subheadings?

  18. 18

    How can I get the CurrentSite object in Orchard?

  19. 19

    How can I get FacetFilter work properly?

  20. 20

    How can I get the type of a Type?

  21. 21

    How can I get memory card information?

  22. 22

    How can I get an accurate length of a BigInteger?

  23. 23

    How can I get the var of a multimethod?

  24. 24

    How can I get the source code of a command?

  25. 25

    How can I add per-target UIAppFonts to a shared Info.plist file at build time

  26. 26

    How do I get the first two closest numbers to a target from an array using lodash?

  27. 27

    AngularJS - How can I get data from GET method

  28. 28

    How can I get the name of the file I'm uploading

  29. 29

    How can I pause a loop until I get a users input?

뜨겁다태그

보관