How does this code call id with html?

  <a href="#" onclick="OpenPopup(this)" id='<%# Eval("YolcuId") %>'>Sil</a> 

javascript code

 function OpenPopup(control) {
            debugger;
            var id = $(control).attr('id');
            $('#hfsilId').val(id);
            $('#sill').modal();

Leave a Comment