Need Help with Ajax

Hi i am having trouble with my ajax code.
It take 1st result data-id data and post to other page but it not doing that for all but there is all created exact same using foreach loop.
Here is code and images
[php] foreach ($companySystem->getAllCompanyGroups($companySystem->getAllCompanyData()->id) as $value) {
if(System::checkOddEvent($srNo) == true){
echo "


$srNo
“.System::removeUnderscore($value->groupName).”
$value->createdDate
$value->createdBy

Edit
Remove


";
}else{
echo "

$srNo
“.System::removeUnderscore($value->groupName).”
$value->createdDate
$value->createdBy

Edit
Remove


";
}
$srNo++;
}[/php]

Ajax :
[php][/php]

Images :
All working fine if i click on first edit button :
https://s32.postimg.org/d64005zn5/working.png

Not working for other options
https://s31.postimg.org/52jcz9fc7/notworking.png

Sponsor our Newsletter | Privacy Policy | Terms of Service