Can a div be made resizable in JavaScript without relying on jQuery or any other external library?
I've been searching for an answer to this question for some time now. I even came across this example:
How to make HTML element resizable using pure JavaScript? However, the resizing effect achieved through this method is not consistent with that of using external libraries like jQuery UI.
Edit:
Another feature needed is a small rectangle shape to drag the image from all four sides. With the previous example, if an image can be moved and dragged at the same time, it might confuse users as one click could trigger both actions simultaneously.
Is there a solution to address this issue?