I'm having difficulty grabbing a specific input from a specific form. Any tips?
<form id ="frm_addtag-1">
<input type="text" name="tag" id="tag">
</form>
<form id ="frm_addtag-2">
<input type="text" name="tag" id="tag">
</form>
<form id ="frm_addtag-3">
<input type="text" name="tag" id="tag">
</form>
If frm_addtag-1 is submitted, I only want to grab the tag input from that form and not the other forms.
When I do something like the below, it will return the tag inputs from any other the forms regardless of which form is submitted.
var tag = $("#tag");
var tag = tag.attr("value");