如何添加更多操作 [英] how to do add more operation

查看:167
本文介绍了如何添加更多操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的应用程序中执行addmore操作,我不知道如何解释我的问题

如果您不介意我要进行与此网站相同的操作

www.freecharge.in


我要在按继续"按钮后输入我的电话号码和金额,分别为100或200,在菜单栏上您可以选择优惠券.

请访问我上面提到的网站.我需要在我的应用程序中执行相同的操作(添加更多操作).请帮助我

i want to do addmore operation in my application i dont know how explain my problem

if yu dont mind i want to same operation like in this website

www.freecharge.in


i this i am typing my number and amount as 100 or 200 after pressing proceed button, at the buttom u can select coupons.

please look in to the website which i have mentioned above.i need the same operation(add more operation) in my application.please help me

推荐答案

您好,

我为您编写了一些代码.

一次检查一次

将此代码放置在datacontrol或其他控件中的任何位置
Hi,

I make some code for your requirement.

check this once

place this code whereever you want like in datacontrol or in another control
<div id="addmoreid">
  <input type ="checkbox" onclick="f1()" />
 </div>
  <div id="addmorenum"></div>



而javascript包含以下代码



And javascript contains following code

function f1() {
         document.getElementById("addmorenum").innerHTML = "you selected count is <div id="\"cnt\"">1</div>";
         document.getElementById("addmoreid").innerHTML = "<a href="\"#\"" onclick="\"f2()\"">+</a>";
     }
     function f2() {
         document.getElementById("cnt").innerText = parseInt(document.getElementById("cnt").innerText) + 1;
     }



在这里,当用户单击+按钮时,可以使用Jquery将数据发布到服务器

首先检查此功能,然后可以实现此功能以满足您的要求.

最好的



Here you can use Jquery to post data to server when user clicks on + button

first check this functionality then you can implement this to achieve your requirement.

All the Best


这篇关于如何添加更多操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆