title: How to call jquery file at button click?
body: <p>Below is Jquery code from <code>form.js</code>...</p>
  
  <pre><code>$(document).ready(function() {
      var requiredFlag = ' * ';
      var requiredKey = $('input.required:first').next('span').text();
      requiredKey = requiredFlag + requiredKey.replace(/^\((.+)\)$/,"$1");
      var conditionalFlag = ' ** ';
      var conditionalKey = $('input.conditional:first').next('span').text();
      conditionalKey = conditionalFlag + conditionalKey.replace(/\((.+)\)/,"$1");
  
      $('form :input').filter('.required')
                      .next('span').text(requiredFlag).end()
                      .prev('label').addClass('req-label');
  
      $('form :input').filter('.conditional')
                      .next('span').text(conditionalFlag);
  
      $('&lt;p&gt;&lt;/p&gt;').addClass('field-keys')
                  .append(requiredKey + '&lt;br /&gt;')
                  .append(conditionalKey)
                  .insertBefore('#contact');
  });
  </code></pre>
  
  <p>I want to call this file at button click which is placed in another file.
  How can i achieve this?</p>
  
  <p><strong>Note:Button is made using asp.net button control.</strong></p>
  
  <p>Thanks in advance. </p>