Data binding? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Data binding?

https://www.sololearn.com/learn/1018/?ref=app How can I create this same affect with pure Js?

13th Jun 2018, 9:17 AM
Daniel Cooper
Daniel Cooper - avatar
5 Answers
+ 3
You should listen for a key down event on the input, that update the Dom with the new value
13th Jun 2018, 9:41 AM
Daniele Lasagno
Daniele Lasagno - avatar
+ 2
Here you go... https://code.sololearn.com/WvPG16TPPvTf/?ref=app Note that sometime simple JavaScript could be less verbose and fast response. Don't always use JavaScript framework for simple codes.
13th Jun 2018, 11:06 AM
Calviղ
Calviղ - avatar
+ 1
Lol. Figured it out last night. But thanks. Also, is that able to get the value because it's directly connected by an event attribute rather than an external js event?
13th Jun 2018, 6:35 PM
Daniel Cooper
Daniel Cooper - avatar
13th Jun 2018, 6:35 PM
Daniel Cooper
Daniel Cooper - avatar
0
Can I have an example? It should give me an idea on how to do it.
13th Jun 2018, 10:01 AM
Daniel Cooper
Daniel Cooper - avatar