title: jquery tow function in same script
body: <p>Need to define multiple <code>jquery</code> functions in same <code>&lt;script&gt;</code> here my script and it is not working.  but I tested <code>ajax</code> function separately and it is working.</p>
  
  <pre><code>&lt;script&gt;
      $(function () {
  
          function loadList()
  
          function loadList() {
              $.ajax({
                  method: "POST",
                  url: "&lt;?php echo base_url(); ?&gt;login/getVoucherajax",
  //       data:{}
              });
          }
  
  
      });
  &lt;/script&gt;
  </code></pre>