I have the following jQuery code, to get the text of the selected option inside a drop-down field:-
var selectobject = $("select[id*='ResponsibilitySubCategory']");
var currentsubcat = selectobject.selected.text();
but i am getting this error:-
"TypeError: selectobject.selected is undefined"