title: Pass parameter to controller from jquery tab
body: <p>I'm loading a jquery dialog with paramater on button click. (able to do) This dialog will open a partial view and it contains jquery tab (contains two tabs). I want to pass paramater received on dialog to correct jquery tab depend on condition so that it goes to controller.</p>
  
  <p>I'm able to get parameter on dialog. I'm trying to pass paramater from jquery tab to controller but it always null. Code looks like:</p>
  
  <p><strong>JS of dialog</strong></p>
  
  <pre><code>//open jquery dialog
  var diag = $('#MyDiv');
  
  diag.load("/Controller/Action?item=" + $(this).id, '', function () {
  }); 
  
  //this is working
  
  $(diag).dialog('open');
  </code></pre>
  
  <p><strong>Controller</strong> </p>
  
  <pre><code>//on controller to loading partial view
  public ActionResult Action(int item)
  {
       Model mmodel = new Model();
       mmodel.itemid= item;
      return PartialView("_partialview", mmodel);
  }
  </code></pre>
  
  <p><strong>Html markup</strong></p>
  
  <pre><code>//partial view which will show tabs. i want to pass paramater from tab to controller
  &lt;div id="tabContainer"&gt;
      &lt;ul&gt;
          &lt;li&gt;&lt;a href="SomeAction1?itemid=" + @Model.itemid&gt;Tab1&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="SomeAction2"&gt;Tab2&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
  &lt;/div&gt;
  }
  &lt;script type="text/javascript"&gt;    
      $(document).ready(function () {
          $("#tabContainer").tabs();
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>How do I pass paramater 'itemid' to SomeAction1 in controller? is there any solution?</p>