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

  • SEARCH
  • Home
  • 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 6875229
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:17:45+00:00 2026-05-27T04:17:45+00:00

I loaded a partial view containing some radiobuttons on it in my view, but

  • 0

I loaded a partial view containing some radiobuttons on it in my view, but when I try to respond to events from the radio button, through some jquery calls, I can’t. Is it impossible to do this, or am I placing the code in the wrong place. I placed the jquery codes in the View and the partial view classes, but neither works. Can anyone help..any advice? Or code samples or links?

Code below:

Sorry…Here’s the partial view

@model IEnumerable<Tuda.Models.PriceModel>
<table class="planTable">
        <thead>
            <tr>
                <th></th>
                <th scope="col" abbr="Premium">PREMIUM</th>
                <th scope="col" abbr="Deluxe">DELUXE</th>
                <th scope="col" abbr="Utlmate">ULTIMATE</th>               
            </tr>
        </thead>
        <tfoot>            
            <tr>
                <th scope="row" style="font-weight:bold">Select Plan</th>
                <td><input type="radio" name="planRadio" value="1"></td>
                <td><input type="radio" name="planRadio" value="2"></td>
                <td><input type="radio" name="planRadio" value="3"></td>               
            </tr> 
        </tfoot>
        <tbody>
            <tr>
                <th scope="row">Library Use (Includes Questions & Answers Only)</th>
                <td>Unlimited</td>
                <td>Unlimited</td>
                <td>Unlimited</td>             
            </tr>

            <tr>
                <th scope="row">Interview Tips & Guides</th>
                <td><span ><img src="../../Images/check0.png" /></span></td>
                <td><span ><img src="../../Images/check0.png" /></span></td>
                <td><span ><img src="../../Images/check0.png" /></span></td>               
            </tr>
            <tr>
                <th scope="row">Problem Areas Detection</th>
                <td><span ><img src="../../Images/check0.png" /></span></td>
                <td><span ><img src="../../Images/check0.png" /></span></td>
                <td><span ><img src="../../Images/check0.png" /></span></td>               
            </tr>
             <tr>
                <th scope="row">Relevant Concepts & Terminology</th>
                <td> - </td>
                <td> - </td>
                <td><span ><img src="../../Images/check0.png" /></span></td>               
            </tr>
            <tr>
                <th scope="row">User Recommended</th>
                 <td></td>
                <td><span><img src="../../Images/check0.png" /></span></td>
                <td><span><img src="../../Images/check0.png" /></span></td>             
            </tr>
            <tr>
                <th scope="row">Validity</th>
                <td>1 Month</td>
                <td>3 Months</td>
                <td>12 Months</td>             
            </tr> 
        </tbody>
    </table>  

       <script type="text/javascript">
           $(document).ready(function () {        

$("input[name='planRadio']").change(function(){
    var planse = $("input[name='planRadio']:checked").val();
    $.get('@Url.Action(MVC.Account.AddToCartPartial())',
                { id: planse }, function (data) {
                    $('#plan').html('<p><strong>Adding to cart...</strong>&nbsp;&nbsp;<img src="@Url.Content("~/images/ajax-loader1.gif")" width="54" height="55" /></p>');
                    $("#plan").html(data);
                });

});   
       </script> 

The call to the controller isn’t made

  • 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-27T04:17:46+00:00Added an answer on May 27, 2026 at 4:17 am
     $(":radio").live("click", function () {
    var inputValue = $('input:radio:checked').val(); 
    });
    or to keep the value of the selected Radiobutton on to hidden field
    <input  type="radio" id="SelectedPlanType" rel="1"  name="Plan1" value='1' onClick="document.getElementById('hiddenfield').value=this.value"  checked="checked">
    <input type="hidden" name="SelectedPlanType" value="" id="hiddenfield" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have JQuery tabs in my view. Each tab contain a partial view. Some
I have a partial view that needs to get loaded between two div but
How can i prevent a partial view from being loaded by typing http://mydomain.com/site/edit/1 Is
I am loading a partial view into a page on a timer with jquery
I want to use Telerik DatePickers and IntegerTextBoxes on my Partial View loaded via
I'm having problems with dynamic partial view data disappearing from the textbox after a
I am using jQuery.load() to render a partial view. This part looks like this:
I feel stupid asking this but I cant seem to get a partial view
I am loading a partial view into a main view using ajax but struggling
My partial view isn't being loaded. Please find my code snippets, I can't figure

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.