Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6621921
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T21:20:08+00:00 2026-05-25T21:20:08+00:00

I am trying to target a div that is generated by a jQuery plugin.

  • 0

I am trying to target a div that is generated by a jQuery plugin. I have been trying to do this using .next but with no luck.

Update: Please note this generated div is triggered by a click

*Update:Here is a fiddle of the code http://jsfiddle.net/clintongreen/PAbAH/1/

The problem is, the next selector ignores the generated div and targets the next div. I understand that this is not working because the generated div is technically not a sibling.

Does anyone have an idea how I can target this elusive generated div. I can’t use css because I only want to hide it when it is generated from certain links.

Code example

//Script
$("div.region_marker").next("div.bubble").hide();

//HTML
<div class="region_marker">Region Marker text</div> //this is how I am targeting the generated div
<div class="bubble">Bubble text</div> //div generated by jQuery, not hard coded, this is ignored by .next
<div class="map_marker">Map Marker text</div> //random div, this is the one that .next targets
<div class="map_marker">Map Marker text</div> //random div

I am open to any suggestions you have, thanks guys

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T21:20:09+00:00Added an answer on May 25, 2026 at 9:20 pm

    Thanks I got it working using:

    $(“div.region_marker”).click(function() { $(this).next(“.bubble”).hide(); });

    It works now using the click function to trigger this at the same time, the traditional methods were not working because I ran those functions before the div.bubble was loaded.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to target the first div block that wraps Target. <div class=box-content> <div>
I'm trying to get a target to build that has quite a long list
I'm trying to access the post target action in a jquery function. example: <form
I get this error: System.Reflection.TargetException: Object does not match target type. when trying to
I'm trying to find a jQuery selector that will match only the element that
I'm trying to get the text contents of a .div('.child#') child of my event.target('h6.class'),
I am trying to use jQuery to show a div when the user clicks
I have a ticket management program that I am trying to add 'accordian' style
I have this javascript that pulls some data via an ajax request the method
In our old system, we used YUI, but the new one is using jQuery.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.