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
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
Use jQuery to get the payTypes
selectand 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: