Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

153
Views
I want to pass value from Modal View with Javascript to another view

I want to pass value from Modal View with Javascript to another view. How can I do that ?

Picture

here is my Java script snippet.

$('#btnSelect').click(function () {
            var oData = table.rows('.active').data();
            var dataobject = {};
            dataobject.code = oData[0][0];
            dataobject.name = oData[0][1];
            console.log("Code: " + dataobject.code + " Product name: " + dataobject.name );
            $.ajax({
                type: "POST",
                url: "@Url.Action("UpdateProductCode", "MappingCode")",
                data: dataobject,
                dataType: "json",
                success: function (response) {
                    **[// Send value to another view when modal popup is closed.][1]**
               }
            });
            return false;

        });

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!