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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T22:30:28+00:00 2026-06-12T22:30:28+00:00

I have created a table structure like this: <table><tr data-bind=css: {success: status}> <td> <input

  • 0

I have created a table structure like this:

<table><tr data-bind="css: {success: status}">
         <td>
          <input type="checkbox" onclick="this.disabled = 'disabled';" data-bind="checked: status, disable: status, click: $root.UpdateStatus" />
         </td>
         <td>
            <span style="width: 80%" data-bind="text: goals" />
         </td>
         <td>
            <input type="text" style="width: 80%" data-bind="value: notes , event: { blur: $root.UpdateNote}" />
         </td>
        </tr></table>

In this table, one checkbox is there in every row. My problem is i want to change the row color when checkbox is checked. I have done css binding in tr, but its working if i reload the page again.
This is jsfiddle link, but its not working.

  • 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-12T22:30:29+00:00Added an answer on June 12, 2026 at 10:30 pm

    I cleaned up your fiddle and made it work:

    http://jsfiddle.net/vyshniakov/gkyGN/3/

    EDIT

    For mapping data from server use arrayMap function from ko.utils:

        $.ajax({
            url: 'ajax/test.html',
            success: function(data) { // in data should come tblGoals.
                var mappedData = ko.utils.arrayMap(data, function(item) {
                    // Change property names if necessary 
                    return new Goal(data.GoalId, data.Goals, data.Notes, data.Status);
                });
    
                var viewModel = new ViewModel(mappedData);
                ko.applyBindings(viewModel);
            }
        });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a table on an Oracle 10g database with this structure :
I have data in my database that looks like this: Date (DateTime) Type (varchar)
I have some nicely-structured data that looks like this: CREATE TABLE SourceBodyPartColors ( person_ID
I have a huge data set. The structure looks something like this: K_Field1, K_Field2,
I have mysql database structure like below: CREATE TABLE test ( id int(11) NOT
I have created a table with the following structure- $sql = CREATE TABLE followers
I have this table structure on a SQL Server 2008 R2 database: CREATE TABLE
I have this database structure, SET SQL_MODE=NO_AUTO_VALUE_ON_ZERO; CREATE TABLE IF NOT EXISTS `announces` (
I have a table in database which has following structure(data) : +--------------------------+ Organization +--------------------------+
I have a table that was created using this mysql statement below. CREATE TABLE

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.