How To Unselect A TextBox Where .select() Was Performed?

<input type=”text” id=”mytb” />

To select: document.getElementById(“mytb”).select()

To unselect: document.getElementById(“mytb”).value = document.getElementById(“mytb”).value;

Just the value to itself. That’s all!

Advertisements