G
G
Gagi_Astvats2022-03-11 14:37:56
JavaScript
Gagi_Astvats, 2022-03-11 14:37:56

How to allow a user to resize an image on a site based on their input?

I am writing a price calculator for the size of the flooring. It is necessary that the image on the site changes depending on the data entered about the length and width by the user on the site and can also take an L-shape. I see it this way: throw the flooring image into two Div blocks and then, through innerHTML, let the user resize the image on the site. But how to implement it correctly in JS?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
ForSureN1, 2022-03-11
@ForSureN1

what is incomprehensible? through elem.style.width and elem.style.height resize the image

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question