我写了一个在js中写了个clear()函数,供html中的按钮调用,结果IE能调用,firefox和chrome都不能调用,代码是这样的:js代码:
function clear(){
alert("clear!");
document.getElementById('inpute').value='';
}
html中的按钮:
<input type="button"
class="button" value="清空" name="清空" onclick="clear();"
onmouseover=" change();" />
请高手帮忙解决一下,谢谢
function clear(){
alert("clear!");
document.getElementById('inpute').value='';
}
html中的按钮:
<input type="button"
class="button" value="清空" name="清空" onclick="clear();"
onmouseover=" change();" />
请高手帮忙解决一下,谢谢
function clear(){
alert("clear!");
document.getElementById('inpute').value='';
}
html中的按钮:
<input type="button"
class="button" value="清空" id="inpute" name="清空" onclick="clear();"
onmouseover=" change();" />
function clear(){
alert("clear!");
document.getElementById('inpute').value='';
}
html中的代码:
<input type="button"
class="button" value="清空" name="清空" onclick="clear();"
onmouseover=" change();" /> <input type="text" class="text0" id="inpute"
style="border: solid thin #9BDEFF; width: 180px" name="seachvo.name"
value="${seachvo.name}" />
function change() {
$(".button").css('cursor', 'pointer');
}