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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T09:27:53+00:00 2026-06-13T09:27:53+00:00

I have a table with data and radiobuttons, which can be checked: accept, pending,

  • 0

I have a table with data and radiobuttons, which can be checked: accept, pending, refuse.
On Save I want to check if any radiobutton is still in the state of pending.
How can I do that?

The Radio Buttons look like this:

<td class="fit">
 <table>
  <tr>
   <td class="pad0"><div class=""><fmt:message key='status.registration.registered'/>:</div></td>
   <c:if test="${participation.registrationStatus == 2}"><td class="pad0 padL10"><spring:radiobutton path="assignmentFormArray[${i}].registrationStatus" value="2" checked="checked"/></td></c:if>
   <c:if test="${participation.registrationStatus != 2}"><td class="pad0 padL10"><spring:radiobutton path="assignmentFormArray[${i}].registrationStatus" value="2"/></td></c:if>
  </tr><tr>
   <td class="pad0"><div class=""><fmt:message key='status.registration.pending'/>:</div></td>
   <c:if test="${participation.registrationStatus == 1}"><td class="pad0 padL10"><spring:radiobutton path="assignmentFormArray[${i}].registrationStatus" value="1" checked="checked"/></td></c:if>
   <c:if test="${participation.registrationStatus != 1}"><td class="pad0 padL10"><spring:radiobutton path="assignmentFormArray[${i}].registrationStatus" value="1"/></td></c:if>
  </tr><tr>
   <td class="pad0"><div class=""><fmt:message key='status.registration.declined'/>:</div></td>
   <c:if test="${participation.registrationStatus == 6}"><td class="pad0 padL10"><spring:radiobutton path="assignmentFormArray[${i}].registrationStatus" value="6" checked="checked"/></td></c:if>
   <c:if test="${participation.registrationStatus != 6}"><td class="pad0 padL10"<spring:radiobutton path="assignmentFormArray[${i}].registrationStatus" value="6"/></td> </c:if>
  </tr>
 </table>
</td>

I tried the following Javascript Function:

function save(){
 alert($("input:radio[value='1']:checked"));
}

This doesn’t work unfortunately. It always alerts with an object, even when no radiobutton with value 1 is selected.

  • 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-13T09:27:54+00:00Added an answer on June 13, 2026 at 9:27 am

    I found the solution. But thanks to anyone who wanted to help:

    function save() {
     var isPending = false;
     $("input[type='radio']:checked").each(function(){
        if ($(this).val() == 1){
            isPending = true;
        };
     });
     if (isPending){
        alert("isPending");
     }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a table of data which represents a series of events that persons
I have a table of data with survey results, and I want to do
I have a table of data which has posts, then I have a separate
I have table data which looks like this id | keyword | count |
I have table with data 1/1 to 1/20 in one column. I want the
I have a table data (td) that has a title on it. I want
I have this data type, which should represent a table: data R = R
I have table(data) having category(0=picture,1=video,2=music) views(numbers of views) I want to write query that
I have table of data that is sorted as follows: Item | Sample |
I have table in data base name train delay, with columns train number(int), DelayTime(int),

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.