28,391
社区成员
发帖
与我相关
我的任务
分享
<script>
function check(f) {
var q = f.q.value, li = document.getElementById('findList').getElementsByTagName('li'), reg = /<[^>]+>/g;
for (var i = 0, j = li.length; i < j; i++)
if (q == li[i].innerHTML.replace(reg, '')) return true; //对比成功
alert('没有数据或者不在返回的记录集合中!');
return false
}
</script>
<form action="http://shanghai.aiyaha.cn/route_show.asp" method="get" name="qm1" autocomplete="off" onsubmit="return check(this)">
<input id=q maxlength=100 size=35 autocomplete="off" onfocus="Suggest.Search(this,'suggest.asp');" name=q> <input type=submit value="上海公交线路查询"></form>