`var input = $(this), groupname = input.val();` is a shorthand for `var input = $(this); var groupname = input.val();`