title: jQuery run same function on click button or onchange dropdown
body: <p>i have following code which is working fine on click button but i also want it to execute on change event of my drop down list. which is </p>
  
  <pre><code> $("select#search_status").change() //i want same execution for it do i need to duplicate whole code ?
  
  
  $('.search-btn-cls').click(function () {
      var search_text = $('#search_text').val();
  
      search_val = true;
      initiatePagination();
      // ajaxSortPaginationSearch();
      // show_per_page();
      // getpagination();
  
      if (search_text.length &gt; 2 || search_text.length &lt; 1) {
          ajaxSortPaginationSearch();
          show_per_page();
          getpagination();
      } else {
          alert('Please enter minimum 3 serach character.');
          $('#search_text').focus();
      }
  
  });
  </code></pre>