THE WHYTELEAFE FC SUPPORTERS' DISCUSSION FORUM
WHYTELEAFE FC HOMEPAGE | WHYTELEAFE FC FACEBOOK PAGE | WHYTELEAFE FC TWITTER
NOTE: All postings from persons calling themselves "Anonymous", "anon" or similar will be deleted
Newest article: Re: Gambling is way to earn money by Dinew1927Yesterday 23:46Yesterday at 23:46:33view thread
Oldest article: Opening hours by WFC2/12/2014 17:09Tue Dec 2 17:09:32 2014view thread
Next thread: Roof heat proofing: by zeeshan26/10/2021 11:27Tue Oct 26 11:27:31 2021view thread
Return the data-football attribute name
Views: 100
If I have the following piece of code:
How would I get the name of the data tag, so in this case it would be 'data-football'. I know how I would get the value but would like to know how I can get the name of the data-tag - in this case data-football when the button is pressed.
i.e,
$(document).on("click", "button", function(){
// Get the name of the attribute (data-football - not the value);
});
Thanks.
PrepaidCardStatus
reply to this article | return to the front page
Re: Return the data-football attribute name
Views: 121
Glad to know about the football team members and that information is wise. I’m sure the people would be able to get help with football. Keep it up with your work at this site essaywritingland.com that is recommended to all.
reply to this article | return to the front page
Previous thread: Infrastructure facilities by Josh M. Cavazos24/10/2021 19:36Sun Oct 24 19:36:34 2021view thread
Follow us on Twitter @WhyteleafeFC. Visit the Twitter page for the full picture.