jQuery change event being called twice

后端 未结 9 1106
滥情空心
滥情空心 2020-12-05 23:03

I have a form with some input and select boxes, each has class=\"myClass\". I also have the following script:

$(document).ready(function() {
            


        
9条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-05 23:22

    All I can think of is that you used the same class on the form itself. if so, remove the myClass style from your form tag.

    Corrected : http://jsfiddle.net/rY6Gq/1/

    Faulty one with double alert: http://jsfiddle.net/rY6Gq/

提交回复
热议问题