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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:56:48+00:00 2026-05-26T23:56:48+00:00

When I use the following jquery template: <script id=cost-template type=text/x-jquery-tmpl> <table class=costSection> <caption class=boldCaption>Costs</caption>

  • 0

When I use the following jquery template:

<script id="cost-template" type="text/x-jquery-tmpl">
    <table class="costSection">
        <caption class="boldCaption">Costs</caption>
        <tr data-bind="css: {'alert-message block-message': quantityWarning}">
          <td class="labelHalfTd ">Total Quantity:</td>
          <td class="dataHalfTd  numericInfo" id="totalQuantity" data-bind="text: quantity"></td>
        </tr>
        <tr>
          <td class="labelHalfTd">Cost (USD):</td>
          <td class="dataHalfTd  numericInfo" id="costUsd" data-bind="text:cost.displayValue"></td>
        </tr>
    </table>    
</script>

knockout correctly evaluates the databind but we end up with the alert-message block-message class on <tbody> instead of the <tr> that has the data-bind. In other cases where the row with the data-bind is not the first row in the table, everything works fine.

  • 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-26T23:56:48+00:00Added an answer on May 26, 2026 at 11:56 pm

    Have you tried wrapping the trs in a tbody? I think that the browser is adding tbody and confusing the attributes with the first row.

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

Sidebar

Related Questions

I use the following for a jQuery link in my <script> tags: http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js Is
I'm attempting to select all <script type=text/html> tags in a page. I use <script>
I have used the script at: http://www.javascript-coder.com/ i use the following jquery code in
I have the following script element in my web page: <script src=default.js type=text/javascript></script> Using
I use the following jquery statements, $(.resultsdiv:odd).css(background-color, #fff); $(.resultsdiv:even).css(background-color, #EFF1F1); $('.resultsdiv').hover(function() { $(this).css('background-color', '#f4f2f2');
I use the following jquery statements but i get error in this function onGetDataSuccess(result)
I use the following jQuery statements and I am getting the error, jQuery.parseJSON is
I would like to know if I can use the following JQuery function on
I use the following the jquery statements to call my php controller function, it
I need to dynamically generate radio or checkbox by jQuery. I use the following

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.