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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T22:34:31+00:00 2026-05-21T22:34:31+00:00

i have the following select element: <select id=’payTypes’> <option value=’1′>Cash</option> <option value=’2′>Check</option> <option value=’3′>Standard</option>

  • 0

i have the following select element:

<select id='payTypes'>
  <option value='1'>Cash</option>
  <option value='2'>Check</option>
  <option value='3'>Standard</option>
</select>

can someone show me how to remove the option Standard from the list

  • 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-21T22:34:32+00:00Added an answer on May 21, 2026 at 10:34 pm

    Use jQuery to get the payTypes select and the eq selector to get the third (it’s zero based so i use 2) and then use the remove method:
    $("#payTypes option").eq(2).remove()

    EDIT:

    $("#payTypes option").each(function() {
    if($(this).val() > 2) { //if it's not check or cash
    $(this).remove();
    }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following HTML <select> element: <select id=leaveCode name=leaveCode> <option value=10>Annual Leave</option> <option
I have the following HTML select element: <select id=publisher name=publisher> <option value=10>Google</option> <option value=11>Yahoo</option>
I have the following select element with an onchange event. <select name=ftest onchange=alert('test');> <option
I have the following select list from which the user can select multiple values.
I have the following select field and based on whether the class .show-x-trend or
I have the following code that populates a select element with values from an
I have the following select form element, and I want to apply the rateit
I have the following element in my page: <u>abc123</u> How to select that element
How can I select a certain element in a list of elements? I have
In trying to select elements that have any attributes, the following throws a 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.