Show image when boxes are checked, hide it when they're not

Soldato
Joined
2 May 2004
Posts
19,950
Hi,

Basically I have something like this:

Text []
Text []
Text []
Text []

A user might make it like this:

Text[x]
Text[]
Text[x]
Text[]

Basically, whenever any box is ticked I need it to show an image (a button) and when no boxes are ticked the button needs to be hidden.

How could I do this please?

Thanks,
Craig.
 
What language?

If HTML, you're probably going to need to set the visibility of the checkbox to false/the opacity to 0, place a background image behind it, and toggle the background image whenever the user clicks the checkbox.
 
robmiller said:
What language?

If HTML, you're probably going to need to set the visibility of the checkbox to false/the opacity to 0, place a background image behind it, and toggle the background image whenever the user clicks the checkbox.

PHP, so yes HTML.

I would do a PHP checker to see if a user has checked a box before it processes it, but the coding on this script I have been asked to edit is terrible :rolleyes:.

I'm not quite sure what you mean in your post?

Thanks,
Craig.
 
Back
Top Bottom