var s = $.map($('[data-name]'), function(e, i) { return e.getAttribute('data-name') + ':' + ++i * 10 }).join(',');