How to return data from controller by AJAX?
Hi. I want to check duplication ID without changing URL or PAGE. So I use AJAX with jQuery. I send data to checking_id controller and if data exist, controller returns its table data. So I can write the form automatically. But controller cannot return data, and AJAX success: function(response) .... response is not defined. How can I return all table data from controller by AJAX..?
Posted over 4 years ago by