I have a dropdown field which is a lookup containing values. I need to get the ID of the selected value whenever we change. I tried using the following. I didnt get any response
$ (document).ready(function(){
$("#ctl00_m_g_8c84c77a_5db3_4a23_9869_d6079afd3bd5_ctl00_ctl05_ctl01_ctl00_ctl00_ctl04_ctl00_Lookup").change(function() { alert("hi"); var id = $(this).find('option:selected').attr('id'); });
alert(id); });