I'm trying to pass value to the edit form on Edit button click (Anchor tag). When i'm alerting it it gives me undified in alert.
When i'm alerting Charector value it shows proper result, but not for ID's.
here is my code:
<a href="javascript:void(0);" class="btn btn-info btn-sm item_edit" data-statusCode="'+data[i].statusCode+'" data-status="'+data[i].status+'">Edit</a>
data[i].status in alert gives me Status value, but data[i].statusCode gives Undified. As in Image I'm getting values in response.
My Edit code:
//get data for update record
$('#showList').on('click','.item_edit',function(){
var statusId = $(this).data('statusCode');
var status = $(this).data('status');
$('#Modal_Edit').modal('show');
alert(statusId);
$('[name="statusId_edit"]').val(statusId);
$('[name="status_edit"]').val(status);
});
Any kind of help is welcome, thanks in advance.
