title: Repalce All http to https of page
body: <p>I want to replace all http to https of a page using jquery.</p>
  
  <p>I am trying this :</p>
  
  <pre><code>jQuery('a').each(function() {
      var href = jQuery(this).attr('href');
      if (href.indexOf('http:') &gt; -1) {
          href = href.replace('http:', 'https:');
          jQuery(this).attr('href', href);
      }
  });
  </code></pre>
  
  <p><strong>I want to replace http: to https: on page load</strong>
  Guide me how to do this?</p>