Blogger Information
Blog 33
fans 0
comment 0
visits 26155
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
PHP在弹框中获取foreach中遍历的id值并传递给地址栏
非常缪
Original
572 people have browsed it

1.php有时候我们需要再弹框中获取foreach中遍历的数据(例如id),在弹框中点击按钮并传递给地址栏跳转。那么应该怎么做呢。

2. 点击取现按钮,如果没有设置密码->弹框

201706131051246.png3. 点击去设置,把用户名通过地址栏传递给别的页面。

201706131051247.png

4.使用onclick事件,把参数charge传递给function函数。function为弹窗函数。

201706131051248.png

5. 把username值传递过来。并给“去设置”赋值herf属性。

201706131051259.png

6.

<div class="mask" ></div>

 <div class="mess">

   <div style="text-align:left;height:50px;line-height:50px;background-color:#3399CC">

   <span style="padding-left:10px;display:block;font-size:18px;">提示<img class="close_window" src="/images/back_img/close.png" style="height:25px;float:right;display:inline-block;cursor:pointer;margin-top:12px;margin-right:10px;"></span>

   </div>

   <div style="width:100%;height:50px;line-height:50px;font-size:17px;margin-top:10px;">  

    <span>该借款人未设置交易密码,请设置交易密码后取现</span>

   </div>

   <div style="height:100px;width:100%;margin-top:20px;text-align:center;">

     <p>

       <a style="width:122px;height:42px;line-height:42px;background-color:#1D8CBC;color:#FFF;display:inline-block;cursor:pointer;border-radius:4px;text-align:center;margin-left:180px;" class="btn1">  

        <span >去设置</span>

       </a>

     </p>

   </div>

 </div>


Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post