title: How to trigger onclick event of searchpanes of dataTable using jquery?
body: <p>In DataTables, there are searchpanes facility. I want to triger it on page load. Filter should be selected from arguments which are passed in url.
  <a href="https://i.stack.imgur.com/H1LnU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/H1LnU.png" alt="enter image description here" /></a></p>
  <p>I have code that will extract value of rows for filter from URL and it will select all the rows those are passed in url, but it is only selection of the rows(I mean it will only highlight that row, in actual filter is not applied and Data of the table remain as it is).</p>
  <p>My code of selecting row is shown below:</p>
  <pre><code>if(str1 == str2) {
    $(this).addClass(&quot;selected&quot;);
    if(!$(&quot;#DataTables_Table_&quot;+id+&quot;_wrapper&quot;).hasClass('dtsp-selected')) {
      $(&quot;#DataTables_Table_&quot;+id+&quot;_wrapper&quot;).addClass('dtsp-selected');
    }
  }
  </code></pre>
  <p>here &quot;str1&quot; is string passed from url and &quot;str2&quot; is string that match in searchpanes table. &quot;id&quot; is searchpane table's id.
  By using this code, selection of correct row is working but actual filter is not applied.</p>
  <p>I am looking for a trigger event that will apply filter after adding select class.</p>