用户在文本字段中输入值时的javascript条件 [英] javascript condition when user enter value in text field

查看:72
本文介绍了用户在文本字段中输入值时的javascript条件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个表单,当用户输入1到25的值时,在另一个文本字段中有两个文本字段应该显示grad1或者如果用户输入25到50然后是grad 2等。

i have a form and there is two text field when user enter from 1 to 25 value in another text field should show grad1 or if user enter from 25 to 50 then grad two etc..

推荐答案





查看:成绩选择


有很多方法可以做到这一点,很难提供答案。

作为样本,考虑< a href =https://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/436256/grade-calculator-javascript-function>成绩计算器 [ ^ ]。使用它并构建自己的方法。
There are so many ways to do this, it would be difficult to provide an answer.
As a sample, consider Grade Calculator[^]. Use this and build your own method.


这篇关于用户在文本字段中输入值时的javascript条件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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