Pass AJAX response to different divs in html through json encode

     

I am trying to send AJAX response in 2 different to display data. This is what i have tried. ANy suggestion please where am i doing wrong?


script


$("document").ready(function(){   $("#search_form").on("submit"function(e) {   e.preventDefault();   $.post("result.php?query="+encodeURIComponent($("#list_search").val())function(data) {   //$('.coupons').html(data);   $('.coupons').html($('#inner1'