title: How to include a js file, on satistying the condition in jquery
body: <blockquote>
  <pre><code>&lt;script&gt;
       jQuery(document).ready(function(){
           jQuery(".tabmenu li").click(function(){
               var current_tab = jQuery(this).attr("class");
               var res = current_tab.replace(" active_tab",""); 
               if(res == 'tabmenu-8')
               {
  
               }
  
           });
  
       });
  &lt;/script&gt;
  </code></pre>
  </blockquote>
  
  <p>I have a script, which is written above. What I want is, I want to include a js file on satisfying the if condition. How can I do that? I tried different methods I found while searching in google, but nothing helped me.</p>
  
  <p>This is the script I want to add there</p>
  
  <pre><code>&lt;script type='text/javascript' src='//code.jquery.com/jquery-1.9.1.js'&gt;&lt;/script&gt;
  </code></pre>