Home > Backend Development > PHP Tutorial > innerhtml-SELECT控件通过innerHTML插入,接下来该如何传值的问题(PHP)

innerhtml-SELECT控件通过innerHTML插入,接下来该如何传值的问题(PHP)

WBOY
Release: 2016-06-02 11:32:33
Original
1147 people have browsed it

innerhtmlphpjquery

前台页面如图
图片说明
需求:兑换码输完以后,会得到一个折扣,需要与原价相乘,得到最终的实际价格
票价处代码如图
图片说明
票价的select是使用innerHTML,代码如下
图片说明
我是打算在兑换码输入框的焦点离开时,去判断兑换码的有效性(已解决),并且去算这个最终价格(未解决),焦点离开代码如下
图片说明
请问:如何在焦点离开时,把SELECT(innerHTML)选中的值传出去,具体应该怎么传?谢谢各位!!!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template