Javascript Submit does not include Submit Button Value

前端 未结 7 2171
野性不改
野性不改 2020-12-01 14:01

Ok, this is less of a question than it is just for my information (because I can think of about 4 different work arounds that will make it work. But I have a form (nothing

7条回答
  •  醉梦人生
    2020-12-01 14:46

    Using a version of jQuery 1.0 or greater:

    $('input[type="submit"]').click();

    I actually was working through the same problem when I stumbled upon this post. click() without any arguments fires a click event on whatever elements you select: http://api.jquery.com/click/

提交回复
热议问题