Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- JQuery selecting trouble
- $('.submissionStatus').click(function () {
- var _ebId = $(this).next('.ebId').val();
- var _product = $(this).next('.product').val();
- var _applicantType = $(this).next('.applicantType').val();
- var _ssn = $(this).next('.ssn').val();
- $.ajax({
- type: 'GET',
- data: { ebId: _ebId, product: _product, applicantType: _applicantType, ssn: _ssn },
- url: '@Url.Action("GetSeverityErrors", "AppListing")',
- success: function (data) {
- alert('Call success')
- $(this).next('.loaded').val(true);
- },
- error: function (xhr, status, error) {
- alert('An Error Occured.');
- }
- });
- });
- <input type="hidden" class="ebId" value="@item.ElectedBenefitId" />
- <input type="hidden" class="product" value="@item.Product" />
- <input type="hidden" class="applicantType" value="@item.ApplicantType" />
- <input type="hidden" class="ssn" value="@item.Ssn" />
- <td align="left">
- <a style="color:red;" class="submissionStatus" href="javascript: void(0)" title="SubmissionStatus">@item.SubmissionStatus.ToPrettyString()</a>
- <input type="hidden" class="ebId" value="@item.ElectedBenefitId" />
- <input type="hidden" class="product" value="@item.Product" />
- <input type="hidden" class="applicantType" value="@item.ApplicantType" />
- <input type="hidden" class="ssn" value="@item.Ssn" />
- <input type="hidden" class="loaded" value="false" />
- </td>
- var _ebId = $(this).siblings('input.ebId').val();
- var _product = $(this).siblings('input.product').val();
- var _applicantType = $(this).siblings('input.applicantType').val();
- var _ssn = $(this).siblings('input.ssn').val();
- $('.submissionStatus').click(function () {
- var storThis = this;
- var _ebId = $(storThis).next('.ebId').val();
- var _product = $(storThis).next('.product').val();
- var _applicantType = $(storThis).closest('.applicantType').val();
- var _ssn = $(storThis).closest('.ssn').val();
Add Comment
Please, Sign In to add comment