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 7838361
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T15:04:58+00:00 2026-06-02T15:04:58+00:00

Please take a look at my test page , my issue is to do

  • 0

Please take a look at my test page, my issue is to do with finding the value of the selected radio button in the “Select picture” group.

On loading I have used the following code:

var currentImageFile = $("input:radio[name=selectedImage]:checked").val();

which picks up the default image for the “Selected picture” div on the left. So far so good.

Now the problem is when a “Select picture” radio button is subsequently clicked my event code:

$("input:radio[name=selectedImage]").click(function() {     
  currentImageFile = $(this).val();
  alert($(this).val());  
});

(the alert is for testing only) returns no value at all!

The HTML is pretty straight forward:

<li><div class="xmasImage rounded" rel="http://www.completeinsight.co/resources/xmasHR/56269.jpg">
    <img class="rounded" src="http://www.completeinsight.co/resources/xmasLR/56269_p.jpg" width="65" height="65" border="0" alt="56269" />
    <div class="imageSelect"><input type="radio" name="selectedImage" value="56269">
        &nbsp;<label for="selectedImage">56269</label>
    </div>
</div></li>

I am missing the obvious??

  • 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-06-02T15:04:59+00:00Added an answer on June 2, 2026 at 3:04 pm
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title></title>
        <script src="Scripts/jquery-1.7.1.min.js" type="text/javascript"></script>
        <script type="text/javascript">
            $(document).ready(function () {
                var currentImageFile = '';
                $('#ImageSelection').find("input:radio[name=selectedImage]").click(function () {
                    currentImageFile = $(this).val();
                    alert($(this).val());
                });
            });
        </script>
    </head>
    <body>
        <ul id="ImageSelection">
            <li>
                <div class="xmasImage rounded" rel="http://www.completeinsight.co/resources/xmasHR/56269.jpg">
                    <img class="rounded" src="http://www.completeinsight.co/resources/xmasLR/56269_p.jpg"
                        width="65" height="65" border="0" alt="56269" />
                    <div class="imageSelect">
                        <input type="radio" name="selectedImage" value="56269">
                        &nbsp;<label for="selectedImage">56269</label>
                    </div>
                </div>
            </li>
            <li>
                <div class="xmasImage rounded" rel="http://www.completeinsight.co/resources/xmasHR/56270.jpg">
                    <img class="rounded" src="http://www.completeinsight.co/resources/xmasLR/56270_p.jpg"
                        width="65" height="65" border="0" alt="56270" />
                    <div class="imageSelect">
                        <input type="radio" name="selectedImage" value="56270">
                        &nbsp;<label for="selectedImage">56270</label>
                    </div>
                </div>
            </li>
        </ul>
    </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Please take a look at this page: http://www.carteadenisip.ro/partener/id-753.html - the image is not showing
Please take a look at the test class below. I am trying to do
Please, take a look at this example: import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class Test
Can someone please take a look at the small test case below and tell
Possible Duplicate: .prop() vs .attr() Please take a look at this fiddle: http://jsfiddle.net/DGzvP/ $(#test).prop({
please take a look of this query: SELECT DATE(datetime), COUNT(1) as numVisits FROM .table_stats.
Please take a look at the html listed below and let me know why
Please take a look at the following .htaccess ErrorDocument 404 /404/ RewriteEngine On RewriteRule
Please take a look here: alt text http://img16.imageshack.us/img16/2810/errrp.jpg Why i got that error when
Please take a look at this example: #include <iostream> #include <vector> #include <string> using

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.