Retain Selected Value On Edit In Ajax For Laravel

[Solved] Retain Selected Value On Edit In Ajax For Laravel | Php - Code Explorer | yomemimo.com
Question : retain selected value on edit in ajax for laravel

Answered by : open-orangutan-6vkq487alk3k

error: function (data, ajaxOptions, thrownError) { var status = data.status; if (data.status === 422) { $.each(data.responseJSON.errors, function (key, value) { $('#msg').append('<div>' + value + '</div>'); }); } if (status === 403 || status === 500) { $('#msg').text("Not Auth"); } }

Source : https://laracasts.com/discuss/channels/laravel/keep-old-value-of-select-ajax-based-edit-form | Last Update : Tue, 25 Jan 22

Answers related to retain selected value on edit in ajax for laravel

Code Explorer Popular Question For Php