Krishma
1 month ago
144
7
Laravel

Getting $ not defined error

Posted 1 month ago by Krishma
<script type='text/javascript'>

function remove(id){    
  $.ajax({
    url: "{{ url('AssetCategoryController/delete') }}",
    type: 'get',
    data: { id: id},
    dataType: 'json',
    success: function (data) {
    var msg = confirm('Are you sure want to Delete this data?');
            if (msg == true) {
                $('#' + id).remove();
                return false;
            }
        },
  });
}
</script>

Please sign in or create an account to participate in this conversation.