How to trigger submit using jQuery Form when button is not rendered using type=submit?
问题 Given this form <form id="posts_form"> <input type="file" value="" name="picture" > <span class="picture_js fc-button fc-button-prev fc-state-default fc-corner-left fc-corner-right"> <span class="fc-button-inner"> <span class="fc-button-content save_button">Share</span> <span class="fc-button-effect"> <span></span> </span> </span> </span> </form> I'm using this <span> based button for style purposes. What I'm trying to do is bind a click event on the <span> button and fire a submit function,