I need to select the text of dropdown list in which id ends with string SelectId
if the id is a fixed one like fixedid, it can be achieved by
var val = $('#fixedid :selected').text(); But, in my case, I know only some end text of that id and that is SelectId
I have tried below code but it failed
$('[id$="SelectId"]').text() How I can achieve this?