s

jquery ajax put request edit button Edit

author
Murugan Andezuthu Dharmaratnam | calendar 31 August 2020 | 2532

how to call a put method using jquery ajax

You could use the ajax method

$.ajax({
    url: '/yourcontrollername/youractionmethod',
    type: 'PUT',
    success: function(result) {
        // Do something with the result
        alert(result);
    }
});             
                    

you can put any url, the sample url controller / action method is for an asp .net mvc application.