@MaelkMark
Posted
Nice solution, good job!
For the tip amount buttons you can use input type radios instead of checkboxes, because then you don't have to uncheck them manually from js. Just replace checkboxes with <input type="radio" name="tip" value="5">
. You must give them an identical name
for the automatic unchecking to work. You can also give them a value (eg. the amount) and then you can get the tip amount with this line of code in js: document.querySelector(".button > input[type='radio']:checked").value
. This line will return the given value
of the checked radio button.
Hope this helps (and please upvote)
Marked as helpful
@MaelkMark I just looked at your solution for the multi-step form. You have done all that with only css :-O!!! You are really awesome. Can you link some resource where you learned all to do all that? I struggle a little with css, I have used much more time to learn it barella enough with respect to js. There are plenty of thing that I don’t know of js yet but for me is much more intuitive learning js. If you can link some useful resource and can tell me how much time you are writing css it would help me. Thank you very very much!