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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:27:04+00:00 2026-05-26T18:27:04+00:00

I have painted a checkbox against each row in my datatable using the following

  • 0

I have painted a checkbox against each row in my datatable using the following function

"fnRender": function ( oObj ) {
        return '<input id="chkBox" name="chkBox" value="'+ oObj.aData[0] +'" type="checkbox" />'; }

In the onchange event I am changing the value of the checkbox to “Y”, like this.

$('#myDataTable input:checkbox').live('change', function (event) {

                              if($(this).is(":checked")) {
                                    $(this).val("Y");                                       
                                }    

                            }); 

I have to now check all those rows whose checkbox value is “Y” and submit the same. However on form submit when I try to retrive the values of the checkboxes against each tr , like this

$('#myDataTable tr').each(function() {                                                        
                      var aData = oTable.fnGetData(this); 

The array returned by fnGetData does not contain the updated value of the checkbox.

However when I evaulate the value of this passed as a parameter to fnGetData in Firebug , it shows the updated value of the checkbox.

I am unable to understand this behaviour of fnGetData , why does it not show me the updated value of the checkbox

Can anybody please help

  • 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-26T18:27:04+00:00Added an answer on May 26, 2026 at 6:27 pm

    Got the root cause of the issue.

    The fnGetData was being called as oTable.fnGetData() , and oTable was equal to the initial datatable that I had painted.

    hence whenever I was calling the fnGetData() , it would return the original value of the Datatables

    I am now looping over each tr and getting the current value.

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

Sidebar

Related Questions

I have painted a datatable with checkbox's against each row. Now when i select
I have tried to create a custom-painted icon using QT under window. The following
I have drawn a checkbox in devexpress grid group row using the code below.
I have implemented a marquee text widget using Qt4. I painted the text content
I have some HTML that looks like this: <ul class=toggleList> <li><input type=checkbox name=toggleCbx1 id=toggleCbx1
I have a JTable and i want a cell (or its row) painted in
Well, I have the following problem: I've painted the tree cells in different colors
I have the following problem: A program displays a picture using a PictureBox .
I have a JPanel on which I've painted four rectangles. The color for each
I have a JInternalFrame painted with a BufferedImage and contained in the JDesktopPane of

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.