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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T01:36:49+00:00 2026-06-13T01:36:49+00:00

I have a set of links: <div id=dd class=mywrap-dropdown-2 tabindex=2>Select <ul class=dropdowner id=coll-filter> <li><a

  • 0

I have a set of links:

<div id="dd" class="mywrap-dropdown-2" tabindex="2">Select
    <ul class="dropdowner" id="coll-filter">
        <li><a href="#">Black</a></li>
        <li><a href="#">White</li>
        <li><a href="#">Blue</li>
    </ul>
</div> 

If clicked the link “White” then my links “Black” and “Blue” would no longer be clickable.

This is what I have but does not work:

$( '.dropdowner' ).on( 'click', 'li', function( e ) {
    e.preventDefault();  
    $(".dropdowner li a").not(this).removeAttr("href")
});
  • 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-06-13T01:36:50+00:00Added an answer on June 13, 2026 at 1:36 am

    unbind() to unbind all the click events associated with that class

     $('.dropdowner').on('click', 'a', function(e) {
        e.preventDefault();
        if ($(this).text().indexOf('White') > -1) {
            alert('Clicked Link with White..')
            $('.dropdowner a').not(this).unbind();
        } else {
            alert('Other Links Cliked');
        }
    });​
    

    Try this .. This will remove the click event for other links when the link with Black is clicked..

    CHECK FIDDLE

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

Sidebar

Related Questions

I have a set of 28 links in a wrapper div element. Each one
so i have a dynamically generated set of links: <a class=linkhref=linkto/1 id=1>link 1</a> <a
I have set the sessions into rows. <div class=container id=session1> <div class=row session> <div
I have 3 divs inside a div. I have set CSS to style links
I have an animation set to slide a DIV down when the DOWN link
It is common to have a set of links in a footer represented in
In my main CSS file, I have my a:link selector set to display links
I have a set of links and their corresponding divs showing information when clicked.
I have a list of post links that have tags inside an inner div.
I have a div along the left side of my page for navigation links.

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.