Following script will used to get the user group details
$().SPServices({
operation: "GetGroupCollectionFromUser",
userLoginName: $().SPServices.SPGetCurrentUser(),
async: false,
completefunc: function (xData, Status) {
var count = 0;
$(xData.responseXML).find("Group").each(function
() {
if ($(this).attr("Name") == "Group
Name")
{
count++;
}
});
if (count == 0) {
// do some action
}
else {
// do some action
}
}
});