Solved

hide check box  but retain background color...?

Posted on 2012-03-30
5
477 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
  • 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 109

Accepted Solution

by:
Ray Paseur earned 200 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 109

Expert Comment

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

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Number of reviews not counting correctly 2 22
jQuery Toggle & Anchor Links 5 43
BATCH to EXE Converter 2 39
show child records separated by commas 12 9
I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

829 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