2
I have an empty textbox, and I have some buttons with values like:
+
, -
, *
, /
, palavra1
, palavra2
so on and so forth.
I want to fill this textbox by dragging these buttons into it, not just by clicking on them, I saw something that can be done in HTML5/Javascript, but I couldn’t solve it.
Note: I would click and hold the mouse and drag this button inside the textbox and the textbox would pick up the value of this button, as if it were a true lego by mounting inside the textbox the strings.
Note 2: It has to be with buttons or inputs, not with images.
Thanks for the answer, I circled here, but for some reason, I try to drag the button to this div, and it does not take the value and does not accomplish anything, I tested in my project and also did not run.
– Vinicius Gularte
puts your entire code that ae we try to run, like it on online javascript sites, eg: jsfiddle.net
– Luiz Santos
https://jsfiddle.net/9kx6zvva/
– Vinicius Gularte
I put in the simplest way possible what I’m looking for, I put textarea but it can be up to a div, I just don’t send all the code by the size of it ..
– Vinicius Gularte
This file sent me this without the js
– Luiz Santos
https://jsfiddle.net/zft0tpos/ updated
– Vinicius Gularte
You are using normal inputs and not buttons, try to take the example and change.
– Luiz Santos
I used your own example, and it didn’t work here, but I found other similar examples and they didn’t run very well, I believe the problem is in my machine, but your answer is correct in a certain way.
– Vinicius Gularte
found the problem, it was my mouse that did not select kk, thank you very much for the patience, theme solved.
– Vinicius Gularte