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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T21:41:37+00:00 2026-05-15T21:41:37+00:00

creating a filter for a select menu and having a few problems! the first

  • 0

creating a filter for a select menu and having a few problems!

the first one is

$("#filterContentMenu option:contains(a)").hide();

doesn’t work but

$("#filterContentMenu option:contains(a)").remove();

does.

Actually this only seem to be a problem in safari! Works in firefox?

  • 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-15T21:41:38+00:00Added an answer on May 15, 2026 at 9:41 pm

    .hide() sets an element’s display to none. You can’t set an <option> to display: none, it won’t work in all browsers. You can remove them and retain a reference to them, though:

    var removed = $("#filterContentMenu option:contains(a)").remove();
    
    // later that day...
    removed.appendTo("#filterContentMenu");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having problems creating a collection of delegate using reflection and generics. I'm trying
Creating a patch is very easy in SubVersion, With Tortoise, you right-click and select
I am updating an application to Rails 3 and I am having trouble creating
I'm creating a web page to select some options from a CSV file: CSV
I'm creating some form to filter my users, table User and I'm discovering the
I am starting to build "drill-down" select elements (select elements that filter their options
I want to filter a table using jQuery hide/show based on what the user
hi im creating a plugin with chaining the problem is I want to select
I am trying to select a grouped average. a1_avg = session.query(func.avg(Table_A.a1_value).label('a1_avg'))\ .filter(between(Table_A.a1_date, '2011-10-01', '2011-10-30'))\
I'm creating result paging based on first letter of certain nvarchar column and not

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.