Note that there are some explanatory texts on larger screens.

plurals
  1. POTargeting a div id in javascript with a function
    primarykey
    data
    text
    <p>I'll get right into it, kind of a newbie here.</p> <p>I have a slideshow running on jQuery that also holds text based content in it as well (we'll call this slider "main slider"). When you slide through, the content changes (obviously). What I'm trying to do is put another smaller slider we'll call this "secondary slider" into one of the larger slides on main slider to showcase some photographic content.</p> <p>I'm having issues.</p> <p>I can get the secondary slider to work on the same page as the main slider but I'm encountering issues when I "embed" it into the main slider. I'm sure it has something to do with the way the plugin is targeting the div. Here is the markup:</p> <pre><code>&lt;div id="img4" class="ctnsec"&gt; &lt;div class="slidecontent"&gt; &lt;div class="graphicleft"&gt; &lt;ul&gt; &lt;li style="float:left;line-height:55px;"&gt; &lt;p class="topcopy"&gt;GRAPHIC DESIGN&lt;/p&gt; &lt;/li&gt; &lt;li style="float:left;padding-left:100px;line-height:38px;"&gt; &lt;p class="botcopy"&gt;SEE THE DIFFERENCE&lt;/p&gt; &lt;/li&gt; &lt;/ul&gt; &lt;div class="clearme"&gt;&lt;/div&gt; &lt;p&gt;Lorum Ipsum&lt;/p&gt; &lt;/div&gt; &lt;!--graphicleft--&gt; &lt;div id="banner-slide"&gt; &lt;ul class="bjqs"&gt; &lt;li&gt; &lt;img src="images/logos/crust.png" alt="under the crust" title="under the crust" /&gt; &lt;/li&gt; &lt;li&gt; &lt;img src="images/logos/space_la.png" alt="space la" title="space la" /&gt; &lt;/li&gt; &lt;li&gt; &lt;img src="images/logos/black_cat.png" alt="the black cat" title="the black cat" /&gt; &lt;/li&gt; &lt;li&gt; &lt;img src="images/logos/sia.png" alt="social investment advocates" title="social investment advocates" /&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;!--banner-slide--&gt; &lt;/div&gt; &lt;!--slidecontent--&gt; &lt;/div&gt; &lt;!--img4--&gt; </code></pre> <p>And here is the plugin javascript that gets included on the page:</p> <pre><code>jQuery(document).ready(function ($) { $('#banner-slide').bjqs({ animtype: 'slide', height: 300, width: 400, responsive: true, randomstart: true }); }); </code></pre> <p>Alright, so you see how the plugin is targeting the div id of "banner-slide" with a class of "bjqs? I need to know how I can tell the plugin that I need to target those same things BUT within the div id of "img4". Is there an easy way of going about this? </p> <p>Thanks in advance for the help, I really appreciate it!</p> <p>-Patrick</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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