title: How to load page from url in modal (Laravel)
body: <p>View</p>
  
  <pre><code>&lt;a href="#" title="Kategori Baru" class="addCat-{{$language-&gt;id}} btn btn-primary" onclick="createNewCategory({{$language-&gt;id}})"&gt;&lt;i class="fa fa-plus" aria-hidden="true"&gt;&lt;/i&gt;&lt;/a&gt;
  </code></pre>
  
  <p>Jquery</p>
  
  <pre><code>function createNewCategory(idx){
  var modal = $('#category').modal();
  modal.find('.modal-title').html('Kategori baru');
  modal.find('.modal-body-category').html('&lt;p&gt;Loading&amp;hellip;&lt;/p&gt;');
  modal.find('.modal-body-category').load('http://localhost:8000/category/create',{},function(d){
      var dlg = $(this);
      $('.ok').unbind().click(function(){
        dlg.find('form').ajaxSubmit({
            dataType : 'json',
            success : function(data){
                var app = '&lt;option selected="" value="'+data.CategoryID+'"&gt;'+data.CategoryName+'&lt;/option&gt;';
                $('.cats-1').append(app);
                $('.cats-1').multiselect('rebuild');
            }
        });
        modal.modal('hide');
      });
    })
    return false;
  }
  </code></pre>
  
  <p>How to use load in modal? when I clicked modal, I want that my modal showing page of <code>http://localhost:8000/category/create</code> but I get </p>
  
  <blockquote>
    <p>Error 405 Method Now Allowed</p>
  </blockquote>
  
  <p>Can anyone help me to solve it?</p>