Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$("#marketList tbody.yui-dt-data")
.find('tr')
.map(function(_,row){
var $r = $(row);
var data = {
"name": $r.find(".yui-dt-col-market").text()
, "sell": parseFloat($r.find(".yui-dt-col-sell").text())
, "buy": parseFloat($r.find(".yui-dt-col-buy").text())
};
return data;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.