需要javascript代码. [英] javascript code required.

查看:78
本文介绍了需要javascript代码.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要javascript代码来显示每完成50个订单项所产生的令人鼓舞的消息.

当单击提交按钮时,此javascript称为.每完成50个订单输入后,应重复一次.

在此先感谢.

I need javascript code for showing a encouraging messages for every cummulative 50’s of order entries done .

This javascript is called whn the submit button is clicked.. this should repeat after every 50 order entries are done.

Thanks in advance.

推荐答案

一种明显的方法是将一个计数器存储在viewstate中,然后当您达到50的倍数时(例如,计数%50 == 0),然后插入javascript这样的alert(您做得很好,哥们!");
The obvious way to do this, is to store a counter in viewstate, and then when you get to a multiple of 50 ( as in, count % 50 == 0 ) then insert javascript like alert("You''re doing great, buddy !!!");


基督教徒,

感谢您的答复..

请详细说明编写此javascript的步骤..
Hi christian,

Thanks for ur answer mate..

please can you be more specific with steps in writing this javascript..


这篇关于需要javascript代码.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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