baidu_31958073 2015-10-12 11:12 采纳率: 0%
浏览 1675

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

  • 写回答

3条回答 默认 最新

  • 大河行脚 2015-10-12 12:54
    关注

    你引用jquery文件了吗

    评论

报告相同问题?