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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T21:01:32+00:00 2026-05-30T21:01:32+00:00

<select name=status id=’status’> <option value=Submitted>Submitted</option> <option value=Canceled>Canceled</option> </select> <input type=checkbox id=app_box name=application_complete value=checked> App

  • 0
<select name="status" id='status'>
    <option value="Submitted">Submitted</option>
    <option value="Canceled">Canceled</option>

</select>
<input type="checkbox" id="app_box" name="application_complete" value="checked"> App Complete

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

    $('form.editable').submit(function(){ 
        if ($('#status').val()=='Canceled') { 
            if (!confirm('This  information will be discarded! )) { 
                return false; 
            } 
        } 
    }); 

}); 
</script>

So, I have the above script which works fine. I have to add one more confirmation. When the agent clicks on the submit button , I want to check if the application check box is checked or not. If it is not checked then display another confirmation box saying, you have to check the box. How can this be done in jquery.

  • 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-30T21:01:33+00:00Added an answer on May 30, 2026 at 9:01 pm

    Like this:

    if ($('#app_box').is(':checked')){...}
    

    Or

    if ($('#app_box')[0].checked){...}
    

    So here is how your code should be:

    $('form.editable').submit(function(){ 
        if (! $('#app_box')[0].checked){
           alert('Check App Complete first !');
           return false;
        }
    
        if ($('#status').val() == 'Canceled') { 
            if (!confirm('This  information will be discarded!' )) { 
                return false; 
            } 
        } 
    }); 
    

    Learn more:

    • http://api.jquery.com/checked-selector/
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have array of select tag. <select id='uniqueID' name=status> <option value=1>Present</option> <option value=2>Absent</option> </select>
When I placed the the following SQL query, SELECT [ItemID], [Name], [RelDate], [Price], [Status]
select s.s_nric as NRIC , s.s_name as NAME , status.st_status , DATE_FORMAT(status.st_fromdate,'%d-%m-%Y') as from_date
SELECT SUM(case when p.status = 2 then p.value end) as 'val_accepted' FROM props AS
SELECT [ID] ,[Name] ,[Markup] ,[Status] FROM [dbxyz].[dbo].[Block] WHERE Name = 'Hakkımızda' Linq2Sql sends this
SELECT name FROM sys.databases -- this can list all database name in the server
According to select name from system_privilege_map System has been granted: SELECT ANY TABLE ...and
I have this script: select name,create_date,modify_date from sys.procedures order by modify_date desc I can
Suppose I am calling a query SELECT name, city, country FROM People. Once I
Let's say I have SELECT name FROM table which gives me something like foo

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.