Custom data attributes
One ideal solution would be to use custom data attributes on the anchor itself, informing jQuery which form should be submitted when the anchor is clicked.
<a data-form="bears">Submit Bears</a>
<form id="bears"></form>
In the above example, we're stating that we would like our anchor to have an association with our form that immediately follows. Now we provide the logic via jQuery:
$("a[data-form]").on("click", function(e){
var formName = $(this).data("form");
$("#" + formName).submit();
});
Example: http://jsfiddle.net/65HPj/
Proximity-based Submission...
A much cleaner solution would be proximity-based, where a link submits it's closest form:
$(".submitBtn").click(function(e){
e.preventDefault();
$(this).closest(".linkFormBlock").find("form").submit();
});
<div class="linkFormBlock">
<a href="submitBtn">Upload Docs</a>
<form>
<input type="text" name="specialValues" />
</form>
</div>
docSaveBtn, while your markup references a link with an id ofsubmitBtnand your description appears to talk about the same... What do you actually intend to occur?