When this method is used to set attribute values, it sets one or more attribute/value pairs for the set of Is there a way to only permit open-source mods for my video game to stop plagiarism or at least enforce proper attribution? Which "href" value should I use for JavaScript links, "#" or "javascript:void(0)"? As of jQuery 1.4, the change event bubbles in Internet Explorer, behaving consistently with the event in other modern browsers. It contains well written, well thought and well explained computer science and programming articles, quizzes and A Computer Science portal for geeks. favorite this post Jan 17 HEM Automatic Metal Band Saw $16,000 (Langley) pic hide this posting $20. How to get the value of custom attribute in jQuery? C $38.35. Selecting element by data attribute with jQuery. You can use MutationObserver to track attribute changes including data-* changes. For example: var foo = document.getElementById('foo'); i have custom data-attribute set default: data-equipment="0" if change jquery using .data() $(this).data("equipment", 10) and use getattribute() thanks!.data() I am new to JQuery so I wrote this code but it doesn't work at all: