jQuery enable/disable show/hide button w/ SELECT options. Get remaining option values
问题 I have a select list which is being populated using the values from a text field. I also have two buttons: an add button which adds the entered value to the select list and a remove button which removes the entered value from the select list. I would like to do the following using jQuery: If the value entered into the text field is NOT AVAILABLE in the select list, show the add button and hide the remove button. If the value entered into the text field is AVAILABLE in the select list, hide