Selected is always returned.

Source: Internet
Author: User
Selected is always returned... & lt; selectname = & quot; typeid & quot; & gt; & lt; optionvalue = & quot; 20 & quot; & gt; Name & lt;/span & gt; & lt;/option & gt; & lt; optionval selected will always be returned...
NameName 1

In this way, the drop-down option selects name 1 by default, but once it is changed to name 2, you want to return 20 of the value to fail, and will always be returned to the 22 of selected. what should I do? How can we return the corresponding value based on the change?

------ Solution --------------------
NameName 1

What is the status of this span tag?
------ Solution --------------------
How is it possible? Unless you do not select
PHP code
  ------ Solution --------------------
Your environment?
Check that the code is submitted, unless your environment is faulty or affected by other code.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.