Skip to main content
Participating Frequently
December 30, 2021
Question

Scaling size object with textinput and button in html5

  • December 30, 2021
  • 1 reply
  • 148 views

Hi everyone, it's me again😊

 

There is an object, button and input text field:

when I put the number in the input text field and then click the button, it will change size of the object.  

 

How can I do this using html5? Can anyone tell me the code?

Thanks in advance!

Have a nice day

 

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
December 30, 2021

this is html5:

 

if(!this.ti_change_cbk) {
function ti_change(e) {
this.line_mc.scaleY = e.target.value;
}
$("#dom_overlay_container").on("change", "#ti", ti_change.bind(this));
this.ti_change_cbk = true;
}