Home >Web Front-end >HTML Tutorial >How to transfer the value of the select drop-down box to the id to implement the code_HTML/Xhtml_Web page production

How to transfer the value of the select drop-down box to the id to implement the code_HTML/Xhtml_Web page production

WBOY
WBOYOriginal
2016-05-16 16:40:483493browse
The complete code is as follows:
HTML code:

Copy code
The code is as follows:








  • 全选

  • 商品

  • 返积分

  • 数量

  • 单价

  • 总价





  • $rs[title]

    $rs[content]


  • 0分

  • {$rs[num]}

  • {$rs[price]}
  • {$rs[price2]}





    运送方式:





    店铺商品合计:
    (含运费) $total




    卖家:{$rs[username]}


    给卖家留言:






    商品总价:(含运费) $total_all






实付款:

$total_ll

$total

{$address_selects}






删除











想要的效果是
当我选择ems20运费时,在运送方式中点击下拉框中的运费时那么就用 店铺合计总价 20元 当我点击平邮50元时,店铺合计总价 50元.
我说的要二个地方显示,是因为他如果存在二个不同的商家的商品时,会有二个商家合起来的总价和 商家商品本身的总价。
解决方法如下

复制代码
代码如下:



Operation on the name="postdb[youfei]" attribute, set the name postdb[youfei] in the action Parameters, namely: private String postdb[youfei], and then generate get/set methods to get the value!
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
Previous article:Input file custom button beautification (demo)_HTML/Xhtml_web page productionNext article:Input file custom button beautification (demo)_HTML/Xhtml_web page production

Related articles

See more