Im trying to grab my divs with the class tooltip.
And then do something like this:
var schemes = $(\".tooltip\"); for (var i in schemes) { var s
var schemes = $(".tooltip"); schemes.each(function(index, elem) { console.log($(elem).attr('cost')); });
As a sidenote "cost" is not a valid attribute for any element as far as I know, and you should probably be using data attributes.