in the code below, I need to get the ID of the element that has raised the event
$(document).ready(function () { $(".selectors").live('change', function () { $.post("GetCategoriesByParentId/", { ID: $(this).val() }, function (data) { var idd = $(this).attr('id'); //here }); }); }); but the idd is always 'Undefined'. Why ?