How to pass ajax sucess result to anather php page :  $.ajax({
                type: "POST",
                url : base_url+'front/searchresult',
                data: data,
                success: function (data){
                alert("testt");
                   var val = $("#searchresults").html(data);
                    window.location.assign("<?php echo base_url()?>front/search/" +val);
              }
            });
IN my above code i want display $("#searchresults").html(data) this result to other page.  