title: Additional parameter to pass to J query token input
body: <p>I am using jquery token input for search purpose in a texbox in my MVC pjct as
  below</p>
  
  <pre><code>(".diag").tokenInput("@Url.Action("SearchDiagnosis","Preapproval")",
  {
        theme: 'facebook',
        preventDuplicates: true,
        searchingText: 'Searching diagnosis code...',
        tokenLimit: 1,
        hintText: 'Diagnosis Code'
  });
  </code></pre>
  
  <p>by default the query parameter 'q' will be passed and return the desired result.</p>
  
  <p>this text is under a table. In the same row there is a dropdownlist.
  Now my requirement is while searching happens in jquery token input i need to pass the selected value of the dropdownlist also. Is it possible?</p>
  
  <p>Edited</p>
  
  <pre><code>var qq;
  
   $("#service").on('change', '.act_type', function () {  
   {
  qq = $(this).val();
  });
  
  
  
  $("#service").find(".act_code").last().tokenInput("../Preapproval/SearchDiagnosis?queryParam=q" + "&amp;type="+qq,
                  {
                      theme: 'facebook',
                      preventDuplicates: true,
                      searchingText: 'Searching...',
                      tokenLimit: 1,
                      hintText: 'Activity code'
                  });
  </code></pre>
  
  <p>the table row is creating dynamically and assigning tokeninput the class.</p>
  
  <pre><code>public JsonResult SearchDiagnosis(string q, string type)
          {...
  }
  </code></pre>
  
  <p><strong>I changed the code like this</strong> </p>
  
  <pre><code>$("#service").on('change', '.act_type', function () {  //$(".diag").change(function () {
  qq = $(this).val();
  var id = $(this).attr('id').split('-');
  $("#code-"+id[1]).tokenInput("../Preapproval/Searchactivitycode?queryParam=q" + "&amp;type=" + qq,
                 {
                     theme: 'facebook',
                     preventDuplicates: true,
                     searchingText: 'Searching...',
                     tokenLimit: 1,
                     hintText: 'Activity code'
                 });
  </code></pre>
  
  <p>Now it pass the correct value assigned to qq. But now iam facing another issue. if the dropdown in the same row is changed more than one time that much number of texbox will be created with tokeninput because he tokeninput is assigning at the change event. Is there any solution to stop this?</p>
  
  <p><strong>Edited</strong></p>
  
  <p>I searched a lot for assigning this to a dynamic created row didn't got any. Please help.</p>