title: Auto click/Force trigger js function
body: <p>I have in my MVC view..</p>
  
  <pre><code> //Submit file
   &lt;% using (Html.BeginForm("MethodName","ControllerName", FormMethod.Post, new { enctype = "multipart/form-data"})) { %&gt;         
       &lt;input type="file" name="file" id="file"/&gt;
       &lt;input type="text" id="file-name" name="Id"/&gt;
       &lt;input type="submit" value="Submit" name="Submit"/&gt;
   &lt;% } %&gt;     
  
  //Save link.
   &lt;span class="Update" onclick="js.function()"&gt;Update&lt;/span&gt;
  </code></pre>
  
  <p>Once I click on the Submit button, I go to controller and the method to run some code that submits the file to the database. After that is finished, I need to auto-click/force click the save link so that the js function is run after the submit .. how can I do that.</p>