There is a select element on the page with the id of customer. Many methods on the Internet that introduce jquery to reference the selected value of select use:
$("#customer option[selected]").val();
This method is used to get selcte selected The value of the item. I have always used it this way, but recently installed the official version of FF3.5 and found that this method cannot get the value under it, so I went to the jquery help document. In the document, the reference to select is used as follows:
$("#customer option:selected" ).val();
Using this method to reference will be normal under FF3.5.
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn