I am using following script but the problem is script is not working properly.Some time work and some time show wrong text.Instead of selected text.it Show me full text like this.
SELECT MINOR علوم الحاسب الآلي هندسة الطيران والفضاء والتكنولوجيا
<select class="cslMinor_Title" id="slMinor_Title">
<option value="-1">Select Minor</option>
<option value="201">علوم الحاسب الآلي</option>
<option value="203">نظم المعلومات</option>
<option value="299">تكنولوجيا المعلومات الأخرى</option>
</select>
$('#slMinor_Title').on('change', function ()
{
alert($('.cslMinor_Title').find('option:selected').text());
});
This is happen when i submit FORM through update panel and i am using this option in dialog box. I want selected text not like below
SELECT MINOR علوم الحاسب الآلي هندسة الطيران والفضاء والتكنولوجيا and also i tried many options like below
jQuery("#slMinor_Title option:selected").text()
But all are giving same result.Guide me what is the problem with code.