Link to home
Start Free TrialLog in
Avatar of Alex Lord
Alex Lord

asked on

Not gettign ID

var jrID = ('a',$(this)).attr('data-id');

Open in new window


Why is this not giving me the id ?
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

have you tried this?

var jrID = $(this).attr('data-id');

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Zakaria Acharki
Zakaria Acharki
Flag of Morocco image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Alex Lord
Alex Lord

ASKER

@Zakaria Acharki    thank you :)
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial