skip to Main Content

how to pass values from ajax to controller on button click? – Jquery ajax

this is my js code which is executed on button click $("#search_tutor").click(function(){ $("#show_tutors").hide(); var subject = $( ".subject" ).val(); var degree_level = $(".degree_level").val(); var city = $(".city").val(); console.log(subject); console.log(degree_level); console.log(city); $.ajax({ url:"<?php echo base_url(); ?>public_controller/search_tutor_jquery", method:"post", data:{subject: subject, degree_level :…

VIEW QUESTION
Back To Top
Search