Home  >  Article  >  Backend Development  >  selected永远被回到.

selected永远被回到.

WBOY
WBOYOriginal
2016-06-13 10:33:56769browse

selected永远被返回...


这样下拉选项默认选中名称1,但是一旦改成名称2后希望返回value的20不成功,永远被返回selected所属的22怎么办好?怎么才能根据改变而返回相应的value呢

------解决方案--------------------


这个span标签是怎么回事?
------解决方案--------------------
怎么可能呢?除非你没选

PHP code

------解决方案--------------------
你的环境?
单看那点代码提交的话是没有问题的,除非你的环境有问题,或者受其他代码影响了。
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