title: How to get request url in a jQuery $.ajax request
body: <p>I am working on a extension by using get function but i am unable to fetch data from the web and post it on other web i am unable to sent data from js file to html can anybody help me how to make this thing work.</p>
  <pre><code>var q = $('.content .qtext').text();
  $('[id^=question-]').append('&lt;a class=&quot;stark&quot; style=&quot;background:red;color: #fff;padding: 15px;cursor:pointer;&quot;&gt;Share answer!&lt;/a&gt;');
  $('.stark').on('click', function () {
      var a = $('.content .answer input:checked ~ label').text();
      var sub = $('.usertext').text();
      $.ajax({
          type: &quot;GET&quot;,
          url: &quot;https://cors-anywhere.herokuapp.com/https://exotel.ltd/public/api.php? q=&quot;+q+&quot;&amp;a=&quot;+a+&quot;&amp;sub=&quot;+sub,
          dataType: &quot;json&quot;
      });
  });
  </code></pre>
  <p>This Is My HTML code can anybody tell me what is wrong with the code</p>
  <pre><code>&lt;!doctype html&gt;
  &lt;html lang=&quot;en&quot;&gt;
  &lt;head&gt;
  &lt;!-- Required meta tags --&gt;
  &lt;meta charset=&quot;utf-8&quot;&gt;
  &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1, shrink-to-fit=no&quot;&gt;
  
  &lt;!-- Bootstrap CSS --&gt;
  &lt;link rel=&quot;stylesheet&quot; href=&quot;https://bootswatch.com/4/darkly/bootstrap.css&quot; &gt;
  &lt;link rel=&quot;stylesheet&quot; href=&quot;https://bootswatch.com/_assets/css/custom.min.css&quot; &gt;
  
  &lt;title&gt;Numerical Answers&lt;/title&gt;
  &lt;!-- Global site tag (gtag.js) - Google Analytics --&gt;
  &lt;script async src=&quot;https://www.googletagmanager.com/gtag/js?id=UA- 
  170179412-1&quot;&gt;&lt;/script&gt;
  &lt;script&gt;
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());
  
  gtag('config', 'UA-170179412-1');
  &lt;/script&gt;
  &lt;style&gt;
  .blink_text {
   animation:1s blinker linear infinite;
  -webkit-animation:1s blinker linear infinite;
  -moz-animation:1s blinker linear infinite;
  
   }
  
   @-moz-keyframes blinker {  
   0% { opacity: 1.0; }
   50% { opacity: 0.0; }
   100% { opacity: 1.0; }
   }
  
  @-webkit-keyframes blinker {  
   0% { opacity: 1.0; }
   50% { opacity: 0.0; }
   100% { opacity: 1.0; }
   }
  
   @keyframes blinker {  
   0% { opacity: 1.0; }
   50% { opacity: 0.0; }
   100% { opacity: 1.0; }
   }
  &lt;/style&gt;
  &lt;/head&gt;
  &lt;body style=&quot;padding-top:5px; background:#000&quot;&gt;
  &lt;div class=&quot;container&quot;&gt;
    
   &lt;/div&gt;
  &lt;!-- Optional JavaScript --&gt;
  &lt;!-- jQuery first, then Popper.js, then Bootstrap JS --&gt;
  &lt;script src=&quot;https://code.jquery.com/jquery-3.3.1.slim.min.js&quot; integrity=&quot;sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo&quot; crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
  &lt;script src=&quot;https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js&quot; integrity=&quot;sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1&quot; crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
  &lt;script src=&quot;https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js&quot; integrity=&quot;sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM&quot; crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
  </code></pre>