How To Send Data Outside Form While Submitting -mvc ,html
In my view there is a form shown below <% using (Html.BeginForm('SaveRecords', 'Search', FormMethod.Post)) { %>
Solution 1:
Here is an answer using javascript
using jQuery you could set a hidden field in the the form above containing the same value as the control that resides in the other form.
if you add an id to your form above then.
$("#myform").submit(function() {
$("#myhiddenId").val($("#fieldInOtherFormId").val());
});
Post a Comment for "How To Send Data Outside Form While Submitting -mvc ,html"