Answer the question
In order to leave comments, you need to log in
Where is it correct to store data in data- or json for a service calculation calculator?
What is the best way to make a calculator for calculating the cost of services?
2 questions in one:
1. data- attributes or json?
2. Is it correct to make inputs? From a semantic point of view, it seems reasonable.
Hidden input with data- attributes + label
<input class="visually-hidden" type="radio" id="id1" name="service-type"
data-size="88" data-price-econom="150" data-price-business="200" data-installation="100">
<label> <img> услуга 1го типа</label>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question