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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T14:05:41+00:00 2026-05-13T14:05:41+00:00

I have a UL with an LI inside of it, when i click on

  • 0

I have a UL with an LI inside of it, when i click on the UL, the LI inside of it fades in. The Li has an input inside of it (search form), next to it i have a select input to select the section of the website you want to search.(both inside of the LI)

I’m trying to get it so that when focus leaves the LI and everything inside of it(select input, search input), it fades out. BUT, right now my code makes it so that when you click the UL to fade in the LI, it fades in, and then i click on the search input, but when i click on the other input inside of the LI(select input), the LI will flash, then if i click back on the search input, the LI will fade out… GAH! i just want the LI to fade out when it and everything inside of it all DO NOT have focus anymore. Any help would be greatly appreciated.

html:

<ul class="ulsearch">

    <li class="lisearch">

        <input type="text" id="search" />

        <select>
        <option>EVERYTHING</option>
        <option>MUSIC</option>
        <option>VIDEOS</option>
        </select>

    </li>
</ul>

jquery:

$('.ulsearch').click(function() {

    $('.lisearch').fadeIn(100);

});

$('.lisearch').focusout(function() {

    $('.lisearch').fadeOut(100);

});
  • 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-13T14:05:42+00:00Added an answer on May 13, 2026 at 2:05 pm

    I just learned that a div can’t have focus unless you apply an index to it, but the w3c says only specific elements should have an index set to them, but does anyone get the idea i’m trying to accomplish and have a way to make it work?

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

Sidebar

Related Questions

I have these buttons inside a div, next to each other. When I click
i have a click event for $('#blah div'). div has text inside of it
I have an iframe container inside the body section and a button. Any click
I have a datagrid inside a win form and each has a V. Scroll
i have Linkbutton inside updatePanel and when i click on it it returns following
Hi I have this simple method which gets triggered when i click inside a
I have a JList inside a Scrollpane. If you click on the list and
I have a div inside a table cell. When I click in the table
I have a fileDownload component inside a dataTable but when I click it it
okay? I have a button that is inside an updatepanel, click on this button

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.