I have this code
var info = $($(r).find(".BuyPriceBox")).find(".PurchaseButton").data();
r is a html page returned from an ajax GET call, which contains a button which I am trying to get the data from
which I am trying to change into the JavaScript equivalent
I can't find anything that would resemble ".data()" in JavaScript? Could anyone help me with this, and if kind enough help me translate it to JavaScript?
.datasetdeveloper.mozilla.org/en-US/docs/Web/API/HTMLElement/dataset