Note that there are some explanatory texts on larger screens.

plurals
  1. POjquery .get problem
    text
    copied!<p>i have this html ul code</p> <pre><code>&lt;ul&gt; &lt;li&gt; &lt;a href='#' class='approch' alt='1' &gt; 111111 &lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href='#' class='approch' alt='2' &gt; 222222 &lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href='#' class='approch' alt='3' &gt; 333333 &lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href='#' class='approch' alt='4' &gt; 444444 &lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href='#' class='approch' alt='5' &gt; 555555 &lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href='#' class='approch' alt='6' &gt; 666666 &lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href='#' class='approch' alt='7' &gt; 777777 &lt;/a&gt; &lt;/li&gt; &lt;/ul&gt; </code></pre> <p>Now I want to make this</p> <p>when user click on any hyper link i make alt for it contain id number</p> <p>J Query should take this id and send get request to File and load html code</p> <p>The Problem Is How to add the answer code from file after the li he click on it</p> <p>mean if i clicked the first link</p> <pre><code>&lt;ul&gt; &lt;li&gt; &lt;a href='#' class='approch' alt='1' &gt; 111111 &lt;/a&gt; &lt;/li&gt; **My Loaded code should apper here** &lt;li&gt; &lt;a href='#' class='approch' alt='2' &gt; 222222 &lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href='#' class='approch' alt='3' &gt; 333333 &lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href='#' class='approch' alt='4' &gt; 444444 &lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href='#' class='approch' alt='5' &gt; 555555 &lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href='#' class='approch' alt='6' &gt; 666666 &lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href='#' class='approch' alt='7' &gt; 777777 &lt;/a&gt; &lt;/li&gt; &lt;/ul&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload