js中的代码(试过2种选择器);
1.
$(function(){
$("#submit").mouseover(function(){
$(this).text("over");
}).mouseout(function(){
$(this).text("out");
});
});
2.
$(function(){
$(":submit").mouseover(function(){
$(this).text("over");
}).mouseout(function(){
$(this).text("out");
});
});
jsp中的代码(在form中的提交按钮):
<INPUT type="submit" name="submit" id="submit" value="提交" class="button medium blue" onclick="return validateDate();"