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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T20:45:55+00:00 2026-06-06T20:45:55+00:00

I have the an array. and I have a table: and this is my

  • 0

I have the an array.

and I have a table:

and this is my template:

What I want to do is for each VegType have 1 checkbox for Carrot, 1 for Potato, 1 one for ETC.

so what will show is :

and so on so forth…

but I want the VegID and VegiType to show next to each check box.

Hope someone helps with this.

Thanks

  • 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-06T20:45:56+00:00Added an answer on June 6, 2026 at 8:45 pm

    It looks to me like you just want another foreach wrapped around the generation of the checkboxes:

    <tbody data-bind="foreach: VegType" >
        <label data-bind="text: Vegitype"></label>
        <input type="checkbox" data-bind="attr:{id: VegID}"/>
    

    UPDATE:

    Ok, so it looks like you want to do something like:

    <script type="text/html" id="a-template">
    <tr>
        <td>
        <span data-bind="text: INFOTEXTAREA"></span>
        <textarea></textarea>
        <span data-bind="text: ID"></span>
        <ul data-bind="foreach: VegType">
        <li>
            <label data-bind="text: Vegitype"></label>
            <input type="checkbox" data-bind="attr:{id: VegID}" />
        </li>
        </ul>
    
    </tr>
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written a function to print database table to an array like this
Say I have an array of table DDL queries and I want to get
Suppose I have an array that mimics a database table. Each array element represents
I have this in my table model called Table $test = $this->find('first', array( 'conditions'
If I have this float array declaration: float tables[10]; How can I change the
i have a three dimensional bit table array as bit_table[dim1][100][200]; The second and third
I have an array defined as; static double Temp_data[TABLE_SIZE]; I want to change the
I need help regarding array insertion into mysql table. I have an array when
I have a 2 dimensional array forming a table: [color][number][shape ] ------------------------- [black][10 ][square
I have a plist (array of dictionaries) which populates a table view and works

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.