aslamdoctor aslamdoctor - 1 year ago 77
HTML Question

How to fill html table made grid with colors using mouse click?

I want to create a simple tool so that user can fill colors inside html table fields or whatever the alternative you can suggest.
Take a look at this page:

I am looking for some tool, interface, Javascript or any other way so that my client fill in the table boxes with colors easily. How can I achieve this?

Answer Source

I have added an extra, so when you click on highlighted td, it will remove it.

Working link :


.HighLight {background-color:#ff0000 !important;}


$(function() {
    $('td').click(function() {
        if ($(this).hasClass('HighLight'))
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download