jQuery event.preventDefault() not working in Firefox (JSFiddle included)

前端 未结 5 542
梦毁少年i
梦毁少年i 2020-12-04 13:17

This is a kind of similar duplicate to some others here, but I think I\'m using event.preventDefault() correctly in this case.

Here\'s a JSFiddle you ca

5条回答
  •  感动是毒
    2020-12-04 13:55

    Because your not passing the event object like function(event), but my question is why even go through all this when you can make the type="button" and onclick pass the values? In essence that what your doing with this whole process.

提交回复
热议问题