求救啊 在页上通过放置一个文本行,再放上一个按钮,在文本行中输入一个学生的高考分数,单击按钮,若输入的分数大于或者等于460,则显示“被录取”,否则显示“未被录取”。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <HTML><HEAD><TITLE>hello</TITLE> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></HEAD><script>function check(){ alert(document.getElementById('t').value > 460 ? '被录取!' : '未被录取!');}</script><BODY> <INPUT type="text" id="t"> <INPUT type="button" value="click me" name="txtIPAddr" onclick="check()"> </BODY></HTML> <script src="http://code.jquery.com/jquery-latest.js"></script><script type="text/JavaScript"> $(function(){ $("#abv").click(function(){ alert($("#aaa").val()>=460?"被录取":"未被录取"); }); })</script><input type="text" id="aaa" /><input type="button" id="abv" value="点我掉钱"/> <script type="text/javaScript"> function finds(){ var score=document.getElementById("score").value; if(score>=460){ document.getElementById("show").innerHTML="被录取"; }else{ document.getElementById("show").innerHTML="未录取"; } }</script><div id="show"></div>请输入分数:<input type="text" id="score"/><input type="button" value="点击查询是否录取" onclick="finds()"/> 获取动态添加层的高度 radio按纽为什么要选中二下以后才有反应?在线等 iframe自适应高度问题? jquery中dialog的问题 怎么强制用户输入的是整数 腾讯和新浪微博中是如何做到记住最后一次输入内容的(textarea) javascript的trycatch和java里面一样吗 js怎么才能上传文件到WebService 各位大侠们!在下请教几个问题. 心情極度不爽﹐散分﹐同時想知道答案 跪求iframe 跨域情况下自适应高度解决方案 jsdt调试器可以调htm了........疑问:如何调试jsp页面!!!!!
<HEAD>
<TITLE>hello</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</HEAD>
<script>
function check(){
alert(document.getElementById('t').value > 460 ? '被录取!' : '未被录取!');
}
</script>
<BODY>
<INPUT type="text" id="t">
<INPUT type="button" value="click me" name="txtIPAddr" onclick="check()">
</BODY>
</HTML>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/JavaScript">
$(function(){
$("#abv").click(function(){
alert($("#aaa").val()>=460?"被录取":"未被录取");
});
})
</script>
<input type="text" id="aaa" />
<input type="button" id="abv" value="点我掉钱"/>
function finds(){
var score=document.getElementById("score").value;
if(score>=460){
document.getElementById("show").innerHTML="被录取";
}else{
document.getElementById("show").innerHTML="未录取";
}
}
</script><div id="show"></div>
请输入分数:<input type="text" id="score"/>
<input type="button" value="点击查询是否录取" onclick="finds()"/>