function test_func (obj_slc) { var slc_name = obj_slc.id; alert( $('#' + slc_name).children(':selected').val() ); alert( $('#' + slc_name).children(':selected').text() ); }
<select id="slc_0001" onchange="test_func(this);">
<option value="1">aaa</option>
<option value="2">bbb</option>
</select>