Javascript OnPaste
The onpaste event fires before the input‘s value is changed. You need something such as a setTimeout: <input type=”text” placeholder=”Paste text” onPaste=”var e=this; setTimeout(function(){alert(e.value);}, 4);”> I’m storing a reference to this inside a global var as this is not accessible inside the scope of a timeout function which is attached to the window object. I’m … Read more