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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T21:03:57+00:00 2026-06-06T21:03:57+00:00

I have a form in a jquery dialogue. How do I get the values

  • 0

I have a form in a jquery dialogue. How do I get the values of the selected checkboxes once the form is submitted?

$(document).ready(function(){

var $dialog = $('<div></div>')
    .html('<form id="myform" action=""><input type="checkbox"   id="completeCheck" name="completeCheck" value="" />Complete check<br /><input type="checkbox" name="view" value="Car" /> View report <br /><input type="checkbox" name="consist" value="" />Consistency check<br /><input type="checkbox" name="other" value="" />Other checks<br /><input type="checkbox" name="keyCheck" value="" />Key check<br /><input type="checkbox" name="compareCheck" value="" />Compare check<br /></form>')
    .dialog({
        autoOpen: false,
        title: 'Data check',
        buttons: {
          "Submit Form": function() {  $('form#myform').submit();},
          "Cancel": function() {$(this).dialog("close");}
        }
    });

$('#createNew').click(function() {
    $dialog.dialog('open');
    // prevent the default action, e.g., following a link
    return false;
});

$('form#myform').submit(function(){

  $dialog.dialog('close');
});        


});
  • 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-06T21:03:58+00:00Added an answer on June 6, 2026 at 9:03 pm

    Working demo http://jsfiddle.net/9mZAJ/2/ or http://jsfiddle.net/9mZAJ/1/

    $('#completeCheck').is(':checked') will do the trick along with .each loop on checkbox rest see demo and below code.

    This should help

    Now to loop through all the check boxes you can do that in several ways using .each and with is(":checked") check. :)

    code

    $(document).ready(function(){
    
    var $dialog = $('<div></div>')
        .html('<form id="myform" action=""><input type="checkbox"   id="completeCheck" name="completeCheck" value="" />Complete check<br /><input type="checkbox" name="view" value="Car" /> View report <br /><input type="checkbox" name="consist" value="" />Consistency check<br /><input type="checkbox" name="other" value="" />Other checks<br /><input type="checkbox" name="keyCheck" value="" />Key check<br /><input type="checkbox" name="compareCheck" value="" />Compare check<br /></form>')
        .dialog({
            autoOpen: false,
            title: 'Data check',
            buttons: {
              "Submit Form": function() {  $('form#myform').submit();},
              "Cancel": function() {$(this).dialog("close");}
            }
        });
    
    $('#createNew').click(function() {
        $dialog.dialog('open');
        // prevent the default action, e.g., following a link
        return false;
    });
    
    $('form#myform').submit(function(){
        alert('completeCheck checkobox is checked or not ==> ' + $('#completeCheck').is(':checked'));
    
      $dialog.dialog('close');
    });        
    
    
    });​
    

    loop like this

    $(this).find('input[type="checkbox"]').each(function(){
        alert($(this).is(':checked'));
    })
    

    Image

    enter image description here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I ask for some help/advise. I have a jquery form dialog to collect usr/pwd
I have a form and i fetch the values of form using jQuery .serialize();
I have a form inside a jquery ui modal dialog, when I click the
I have a form what jQuery sents for me using Ajax to php. For
I have a form on a webpage that I submit using the jquery form
I have a form in a jQuery popup on a webpage. The jQuery popup
I have a form in a jQuery enabled site. The form does not feature
I have a form that uses jquery to generate rows of input fields these
Possible Duplicate: jQuery AJAX submit form I have a form on a page A,
We have a form which uses the JQuery Validation Plugin and would like to

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.