hi all,

as my code below, i need to compare each id record from the actions list with its previous id record within that same list. how do i do that? please help...

myFormResponse = function(responseXML) {
var product = $(responseXML).find('product');
			var status = $(product).find('status').first().text();
			if (status == "SUCCESS") {
			var actions = $(product).find('productActionsList');
				actions.each(function(i, v) {
					var act = $(v).find('actLocationDTO');
					var actLocId = $(act).find("id").text();
					//do comparison for each id with previous id
thanks in advanced..