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 1063481
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T18:47:23+00:00 2026-05-16T18:47:23+00:00

Ok, so i have a few <div1> elements with static content inside of them.

  • 0

Ok, so i have a few <div1> elements with static content inside of them. Then if you hover over the <div1> another <div2> pops up over top of it. (note: how this happens is the “display” property changes from “none” to “block”) This <div2> has data that is relevant to <div1>. It populates dynamically based on the <div1> that you over on.

These <div> elements i do not have access to manipulate. What i am trying to do is create a JQuery script that says if this particular data is populated into the <div2> than manipulate it in this way.

Could someone please help me with this? I would greatly appreciate it. Thanks!

If you have any questions or anything please let me know!

EDITED:
Ok, here is what i have… <div id="model-rotator-form"> is the div that stays hidden until you hover over an “li”, then it displays with dynamic content.

Within this <div> is an H2 element that holds the vehicle name, a UL element that holds two link images, and a bunch of other elements that i’m not trying to change.

The H2 element is <h2 class="model-name">Vehicle Name</h2> and the UL element is <ul class="link-btn"><li><a class="linkBtn" href="Model.aspx?d=711" id="model-rotator-link-1">Research</a></li><li><a class="linkBtn" href="/Dallas/For-Sale/New/Volkswagen/Jetta SportWagen/" id="model-rotator-link-2">Inventory</a></li></ul>

My code right now doesn’t work i know…this is just a reference point…
$('#model-rotator-form *');
if($('$h2.model-name').length() >= 25){
$('ul.link-btn').css('margin-top','-20px');
}

Let me know what i can do. Again…hope this code helps.

  • 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-16T18:47:23+00:00Added an answer on May 16, 2026 at 6:47 pm

    Now that a code sample is provide, I’m rewriting my original answer.

    So something like this might work for you, in the function that pops the div (and has the popped div active in “this”) …

    if ( $(this).find(“.model-name”).text().length > 25 )
    $(this).find(“.link-button”).addClass(“whatever”);

    The “whatever” class might have a negative margin that moves it a bit higher up. You’re getting into hard-coding territory here, though, where you’re making specific pixel decisions within the code, which is a bit scary

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

Sidebar

Related Questions

I have few tabs with same form inside of them, only difference is location
I have few node types and some of them have an extra field is
I have few tabs and I need to way to access textboxes on them
I have few Vaadin tabs one of them is displaying an table and some
I have few values existing in data base,i need to update them but,i am
Have few columns and tables, as follows: NOTE : The names of elements used
I have few pages that I show from my main page inside iframe .
Have few thousand reports that have consistently formatted tabular data embedded within them that
I have few form fields, each input and label is wrapped inside a div
Let presume we have something like this: <div1> <h1>text1</h1> <h1>text2</h1> </div1> <div2> <h1>text3</h1> </div2>

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.