My problem is that I want to be able to hide or show an uploaded image via checkbox, i.e. I uploaded image A, a checkbox will come along with it that if checked hide image, when unchecked show image. I was thinking of giving them values like 1 and 0 but I have no idea where should I do this, is it in Javascript? or in symfony forms/entities/controller?
Any help would be much appreciated, thanks in advance.
Aucun commentaire:
Enregistrer un commentaire