Is it possible to be done using Dojo? this is JQuery code:
$(document).ready(function() {
$(document).on("click", "a.cssPauseAll[historyID]", function() {
var historyID = $(this).attr("historyID");
$(document).find("[itemHistoryID=" + historyID + "]").each(function() {
alert($(this).attr("ContentID"));
});
});
});
It depends on whether you use baseless or legacy Dojo. I implemented both in this jsFiddle: http://jsfiddle.net/phusick/PxgZE/
Baseless Dojo
Legacy Dojo