angularjs get selectedGroup for optGroup code example
Example: angular js get selectedGroup for optGroup
document.querySelector('select[name="lstparameters"] option:checked').parentElement.label
document.querySelector('select[name="lstparameters"] option:checked').parentElement.label