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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T06:19:53+00:00 2026-05-31T06:19:53+00:00

<input type=radio id=incomplete name=app_status value=incomplete>Incomplete Application<br> <input type=radio id=complete name=app_status value=complete>Complete Application<br><br> <div id=app_box>

  • 0
<input type="radio" id="incomplete" name="app_status" value="incomplete">Incomplete Application<br>
<input type="radio" id="complete" name="app_status" value="complete">Complete Application<br><br>
<div id="app_box">      
   <input type="checkbox" name="application_complete"  value="checked" />Checbox policy

<br><br>
</div>

I am trying to implement a radio box such that when a user clicks on the incomplete radiobox it should display an alert.

If the user clicks on the complete radio box its should show the ‘application_complete’ box, else hide it.

Here is what I am trying to implement in my jquery function, probably my concept is a bit wrong i guess:

<script type="text/javascript">
$(function(){
    $("#app_box").hide("fast");
    if($("#complete").is(':checked')){
        $("#app_box").show("fast");
    }
    elseif($("#incomplete").is(':checked')){
        alert("Application will be incomplete");
        $("#app_box").hide("fast");
    }
});
</script>

Thanks guys.. I need to little modification to the code suggested by JREAM. If I check on the application_complete box and then click on the incomplete radio box, can I uncheck the application_complete box again?

Never mind. i figured it out.

$('input[name=application_complete]').attr('checked',false);
  • 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-31T06:19:54+00:00Added an answer on May 31, 2026 at 6:19 am

    You have two problems:

    1: You have no Event handler, so it only checks your forms when your page loads (And they have no selection made to start with)

    2: You did “elseif” but in JS its two words, so your JavaScript broke, do “else if”, here is the solution:

    <script type="text/javascript">
    $(function(){
        $("#app_box").hide();
    
        $('input[name=app_status]').change(function() {
          var value = $(this).val();
          if (value == 'incomplete') {
            alert('error msg');
          } else if (value =='complete') {
            $('#app_box').show();
        }
    });
    
    });
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have HTML like this: <input type=radio name=type value=FL checked=checked />Fixed <input type=radio name=type
as said in the title for example: <input id=User_Type_0 type=radio name=User_Type value=1 checked=checked />
Question 1: Given <input type=radio name=foo value=1 /> <input type=radio name=foo value=2 /> <input
how can i process all radio buttons from the page? <input type=radio name=radio_1 value=some
I have a radio button something like this, <input type=radio value=A name=NodeLevel /> When
I have a input type radio with it's value. <input type=radio name=myradio id=radio1 value=someValue
Radio box code: <input type = radio name = choice value = A />Apples
I have a form: <form name=form1 method=post action=form_to_write.php> <h4>q1</h4> <input type=radio name=a1 value=someValue1 />someValue1<br
I have some HTML like this: <input type=radio class=MyRadio name=TheName> <label for=TheLabel>the text</label> How
<form action=1.html> <input type=radio id=check1 name=check /> <input type=radio id=check2 name=check /> </form> What

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.