Hi all,
as my below javascript code, i need to compare each id of my actions with previous actions id within that same list, and do something. But how do i do that? please help..
thanks in advanced.Code: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 }); };



Reply With Quote
Bookmarks