?
Solved

hide check box  but retain background color...?

Posted on 2012-03-30
5
Medium Priority
?
486 Views
Last Modified: 2012-04-01
Hi, can someone let me know how I can hide the check box once checked but retain the background cell color?  I am able to hide the check box using "display:none" but this caused the cell background color to also disappear. Thanks for the help.

A
0
Comment
Question by:aej1973
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 7

Expert Comment

by:designatedinitializer
ID: 37789655
you can try
"visibility:hidden"

But you would be better off if you structured your html a little differently, I suspect.
I say "suspect" because you haven't post it up here for us folks to take a look at! :)
0
 

Author Comment

by:aej1973
ID: 37790163
Hi designatedinitializer;

attached is the code I am working with. The values in the input box are being pulled up from my database and depending on the value the color  will either be green or red for values 1 and 2 respectively. When the value is 2 I need the color in the cell to be green and the check box in the cell to be hidden. Thanks for the help.

PS; the way I have written the code is I have hard coded the cell numbers, I am not sure if there is a better way to accomplish this. Thanks for the help.

A
report-weeklyPlanner.php
0
 
LVL 111

Accepted Solution

by:
Ray Paseur earned 800 total points
ID: 37793137
You might want to use jQuery to fade the checkbox.  I don't have time to write a demo for you now, but you can see a jQuery fade effect on this site.  Watch the banner image at the top.  Move your mouse over and off the banner image.  You can use "view source" to find the jQuery statements near line 45.
http://landonbaseball.com/
0
 

Author Comment

by:aej1973
ID: 37793697
Thanks for the suggestion ray, got a lot of information from; http://www.w3schools.com/jquery/jquery_effects.asp.

Thanks
A
0
 
LVL 111

Expert Comment

by:Ray Paseur
ID: 37793725
Great - w3schools is usually pretty good!
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Suggested Courses

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question