title: Append anchor tag
body: <p>In my application, I want to make an image a link to another page. Image is placed in html as,</p>
  
  <pre><code>&lt;div class="rightbuttoncontainers_footer"&gt;
    &lt;div class="forfooterimg" id="twitterlink_indv"&gt;
      &lt;img src="Images/tweatus.png" width="30" height="30" alt="tweat"&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I want to make those image as links via script, I tried the following</p>
  
  <pre><code>var twit_lk='https://twitter.com/';
  $('#twitterlink_indv').append('&lt;a href="'+twit_lk+'"/&gt;');
  </code></pre>
  
  <p>But the output of the above code is like this,</p>
  
  <pre><code>&lt;div class="rightbuttoncontainers_footer"&gt;
    &lt;div class="forfooterimg" id="twitterlink_indv"&gt;
      &lt;img src="Images/tweatus.png" width="30" height="30" alt="tweat"&gt;
      &lt;a href="https://twitter.com/"&gt;&lt;/a&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>But, I want the output like the following,</p>
  
  <pre><code>&lt;div class="rightbuttoncontainers_footer"&gt;
    &lt;div class="forfooterimg" id="twitterlink_indv"&gt;
      &lt;a href="https://twitter.com/"&gt;
        &lt;img src="Images/tweatus.png" width="30" height="30" alt="tweat"&gt;
      &lt;/a&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>How can I make it work?</p>
  
  <p>Please help,</p>
  
  <p>Thanks</p>