So I got a little codepen. Everything works so far except a little thing. I got a <h1>
and an <input>
. When I type something in the text input, its value should get passed to the <h1>
in realtime.
I tried to do that with a keyup function:
$('input[name=titleInput]').keyup(function(){
$('#title').text(this.value);
});
Something happens, but not what I want.
When I type something in the text input, then delete it (with backspace) and re-enter something, only the first character gets passed to the title.
Try it out on my codepen. Maybe it's just a stupid mistake of mine, but to me this behaviour is pretty weird.
Thanks for your help in advance!
EDIT:
I am using text-fill-color
, which may causes the problem.
EDIT 2:
A friend of mine tested it. It worked for her. She's using Chrome and the same version as me (58.0.3029.110 (official build) (64-Bit)).