Given the following javascript:
function foo(selectControl) { ... }
and the following html:
<select onchange="foo(this)"> ...
In JQuery, how do I simulate the following functionality:
$('#selectList :selected').text();
when instead, I am passing around the real DOM object. I know I can wrap the DOM object up and invoke operations like
$(selectControl).val();
but I'm specifically asking how to replicate JQuery's string selector mechanism:
$('#selectList :selected')