Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6155457
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:26:20+00:00 2026-05-23T20:26:20+00:00

I have used jQuery to display info for a record depending on some user

  • 0

I have used jQuery to display info for a record depending on some user selections. I need to add a button or a link that will take them to an Edit view, but don’t know the best way to achieve this. The ID for the navigation will change as they browse the data.

Can I dynamically alter the ActionLink using jQuery?

More info
Users make a selection from list boxes, then I go and get the appropriate data via a $.getJSON call. Information is then displayed in a summary box with the option to edit the data.
So the fetch looks like this

$.getJSON("/Result/FetchState", { metricId: metId, calendarId: calId }, function (data) {
              $('#Info1').val(data.ResultId);
              $('#Info3').val(data.Headline);
              if (data.AllowEdit) { $('#btnEdit').attr('disabled', false); } else { $('#btnEdit').attr('disabled', true); }
              $('#editlink').val(data.ResultId);
          });

I now need to be able to navigate to a View (/Result/Edit/{id}) where {id} is the ResultId from the FetchState call.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T20:26:20+00:00Added an answer on May 23, 2026 at 8:26 pm

    You could use a <form> containing a hidden field and a submit button. When the user performs some selection you would set the value of the hidden field to this new selection:

    $('#SomeHiddenField').val('some new value');
    

    Then when the user submits the button this will redirect to the new action passing along the value of the hidden field.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have in my site some links that are just used to display informative
I am working on some website , i have used jQuery UI , for
I have some onchange events setup in jQuery which are used to populate a
I have used JQuery for a small animation work: a table #photos contains 9
I have used JQuery within my asp.net page. JQuery is working fine. I could
I have not used jquery much yet and not very familiar with it. Trying
can somebody tell me what is jQuery plugin? I have used the jQuery library
I like jQuery and I was wondering if anyone have used a good plugin
I have always used the mouseover event, but while reading the jQuery documentation I
I'm new to building jQuery plugins. I have seen and used a lot of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.