@Slimani-CE
Posted
I suggest implementing a toggle functionality for prices using a clever combination of HTML and CSS
. First, create a hidden checkbox input accompanied by a corresponding label. By placing your toggle button within this label, a click on the toggle will essentially trigger the checkbox. Leveraging the CSS :checked
pseudo-class, you can dynamically style elements based on the checkbox's state. When the checkbox is checked, apply styles to display the monthly price; otherwise, keep the yearly price div visible.
@yassine-ramla
Posted
@Slimani-CE that's exactly what I've done :). thanks for your help.