mercredi 8 juillet 2015

hide chekbox, highlight selected pitures

I would like to hide the chekboxes in my from and replace them with pictures. At the moment i already have the pictures but i would also like to hide the check3boxes themself. if one of the pictures gets selected, it should get a highlighted border. I would be really glad for any help

here's my current form code

    <form type="post" action="photoselection.php">
            <div id="photowrapper">

                <div class="photo">
                    <input type="checkbox" value="" name="bild1">
                    <label class="label_item" for="rbild1"><img src="bild1.jpg"/></label>
                </div>
                <div class="photo">
                    <input type="checkbox" value="" name="bild2" id="rbild2">
                    <label class="label_item" for="rbild2"><img src="bild2.jpg"/></label>
                </div>
                <div class="photo">
                    <input type="checkbox" value="" name="bild3" id="rbild3">
                    <label class="label_item" for="rbild3"><img src="bild3.jpg"/></label>
                </div>
                <div class="photo">
                    <input type="checkbox" value="" name="bild4" id="rbild4">
                    <label class="label_item" for="rbild4"><img src="bild4.jpg"/></label>
                </div>
                <div class="photo">
                    <input type="checkbox" value="" name="bild5" id="rbild5">
                    <label class="label_item" for="rbild5"><img src="bild5.jpg"/></label>
                </div>
                <div class="photo">
                    <input type="checkbox" value="" name="bild6" id="rbild2">
                    <label class="label_item" for="rbild2"><img src="bild2.jpg"/></label>
                <Input type = "Submit" Name = "Submit" VALUE = "Bild anzeigen">
                </div>
            </div>
            </form>




Aucun commentaire:

Enregistrer un commentaire