getGroup: new method

Hi, I have been added a new method getGroup to get the group of the checked option by the input check box.
If you see it can be improve, just do it, please. Everything always can be improved.
Thank you!