title: How to Load a view Codeigniter using post and ajax?
body: <p>My Javascript Code is like this :</p>
  
  <pre><code>$(".booking_hotel").click(function(){
      var id = this.id;
      $.ajax({ 
          type: "POST",   
          url: base_url + 'hotel_booking/hotel/hotel_booking',   
          data: id
      });
  });
  </code></pre>
  
  <p>Function in my controller is like this :</p>
  
  <pre><code>function hotel_booking()
  {   
      $data = $this-&gt;input-&gt;post();      
  
      $data = array(
          'hotel_request' =&gt; $data,
      );   
  
      $this-&gt;load-&gt;view('hotel_booking/booking_hotel_view',$data);
  }  
  </code></pre>
  
  <p>It not successful to load view. But in console firebug(tab html), the view could appear.</p>
  
  <p>How to load view booking_hotel_view when class .booking_hotel clicked?</p>
  
  <p>Thank you</p>