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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:28:25+00:00 2026-05-23T15:28:25+00:00

Using Jquery, I want to build a table of size 4×4 with equal sized

  • 0

Using Jquery, I want to build a table of size 4×4 with equal sized blocks, which I can “fill” with a color.

Visual example:

enter image description here

The circle does not have to be included for this question.

I’m looking for advice, links, or suggestions on how to build this. I’m not very familiar with Jquery’s canvas/draw functionality but I think that may be a possible solution. The determinate for which boxes are filled will be set by how many levels of a job a player has finished. For example the first column shows that the player has completed all 4 levels.

However, I can worry about how to send in the information. What I’m unsure of is (again) the best way to make a simple table like this.

  • 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-23T15:28:26+00:00Added an answer on May 23, 2026 at 3:28 pm

    Here you go:

    HTML:

    <table>
        <tr>
            <td class="a"></td>
            <td></td>
            <td></td>
            <td></td>
        </tr>
        <tr>
            <td class="a"></td>
            <td></td>
            <td class="c"></td>
            <td></td>
        </tr>
        <tr>
            <td class="a"></td>
            <td class="b"></td>
            <td class="c"></td>
            <td></td>
        </tr>
        <tr>
            <td class="a"></td>
            <td class="b"></td>
            <td class="c"></td>
            <td class="d"></td>
        </tr>
    </table>
    

    CSS:

    td { width:40px; height:40px; border:1px solid #333; }
    td.a { background-color:red; }
    td.b { background-color:blue; }
    td.c { background-color:purple; }
    td.d { background-color:green; }
    

    Additionally, you may want to use a CSS Reset style sheet in order to make the table appear the same cross-browser.

    Live demo: http://jsfiddle.net/simevidas/hdBZY/

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

Sidebar

Related Questions

How can I build a simple table filter with good effect using jQuery? I
Sup guys. I'm loading data into a table using ajax and jquery. This can
I want to build a basic anchor based navigation system using jQuery. I don't
Using jQuery I want to bind an existing function to a button. I've been
I want to read multiple RSS feeds using jQuery. I'm trying to write a
I want to get the class name using jQuery And if it has an
I want to create multilevel accordion Navigation using jQuery , I tried using this
I'm using jQuery UI Autocomplete with a categorized search result and I want to
I am using jquery lightbox plugin colorbox ( http://colorpowered.com/colorbox/ ) and i want to
I am using jQuery validate for client side validation and I want to ignore

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.