Option value or Test

Option value or Test


Hi,

Here is Jquery and it was triggered fine whilst I am not getting value of option or text. Can you please help me to correct the below sample script to get alert for selected option val or text. Thanks in advance

$(document).ready(function()

{  

  $("#adx_quickservice").hide();

  $("#adx_recentquality").on("change", function()

{    

//var selected = $("#adx_recentquality").val();  

 var selected = parseInt($("#adx_recentquality").find("option:selected").val());

//var selected =$("#adx_recentquality").text();  

alert(selected); $("#adx_quickservice").show();

});

 });

Cheers