jquery form中的提交按钮用mouseover事件无反应????

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();" 

你引用jquery文件了吗

引用了jquery文件的

$(function(){

console.log( $("#submit"))//打印对象看看

    然后用开发工具看下是不是被类库修改过dom对象了,是否有js错误