Note that there are some explanatory texts on larger screens.

plurals
  1. POjQuery Imageslider issues
    text
    copied!<p>I am following this tutorial <a href="http://fearlessflyer.com/2010/08/how-to-create-your-own-jquery-content-slider/" rel="nofollow">how to create your own jquery content slider</a></p> <p>to create an image slider everything works fine but i have to use <code>Next</code> and <code>Previous</code> in a separate div , how can i make it work?</p> <p>here is code below </p> <pre><code> &lt;div class="nextprev"&gt; &lt;div class="next"&gt; &lt;a class="next" href="#"&gt;next&lt;/a&gt; &lt;/div&gt; &lt;div class="nextborder"&gt; &lt;/div&gt; &lt;div class="prev"&gt; Prev &lt;/div&gt; &lt;/div&gt; &lt;ul class="im"&gt; &lt;li&gt;&lt;img src="&lt;?php echo $this-&gt;basePath().'/images/feat/shop/1/1_large.jpg';?&gt;" /&gt;&lt;a class="next1" href="#"&gt;next&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;img src="&lt;?php echo $this-&gt;basePath().'/images/feat/shop/2/2_large.jpg';?&gt;" /&gt;&lt;a class="next1" href="#"&gt;next&lt;/a&gt;&lt;a class="previous" href="#"&gt;prev&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;img src="&lt;?php echo $this-&gt;basePath().'/images/feat/shop/3/3_large.jpg';?&gt;" /&gt;&lt;a class="next1" href="#"&gt;next&lt;/a&gt;&lt;a class="previous" href="#"&gt;prev&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;img src="&lt;?php echo $this-&gt;basePath().'/images/feat/shop/4/4_large.jpg';?&gt;" /&gt;&lt;a class="next1" href="#"&gt;next&lt;/a&gt;&lt;a class="previous" href="#"&gt;prev&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;img src="&lt;?php echo $this-&gt;basePath().'/images/feat/shop/5/5_large.jpg';?&gt;" /&gt;&lt;a class="previous" href="#"&gt;prev&lt;/a&gt;&lt;a class="startover" href="#"&gt;startover&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; </code></pre> <p>I dont want to use next and previous button within <code>&lt;li&gt;&lt;/li&gt;</code> so i even tried calling <code>$('.prev').click(function(){ });</code> but did not work ,, any idea to fix this?</p>
 

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