用第一张表格提交第二张表格

i made a plugin to upload a image file which is already exist in database.image of plugin given below. my pluginThis modal have one <form> tag. Now i wants to implement this code to my form.so Form Have Already one form So how can i manage Both Form.

if user upload file than above form will skip and this form is submitted and above data will be lost. My Form is like this enter image description here

remember you should provide your work

       $("#html_form_id").submit(function() {

            $( "#modelForm_id" ).submit();

            return false;
        });

Description is ambiguous not clear if you want to submit first form, second form or both.