Text inside textbox widget is auto selecting and wiped off.

Hi, We are having a popup to edit name, when we open a popup the text inside the textbox box is auto selecting and without clicking out if user type anything existing text is getting wiped. Users need to click outside before editing the text. Any solution for this issue, to avoid text getting auto selected on opening popup.   
1 answers

function openPopup() {

document.querySelector('.textboxClass').blur(); // Replace 'textboxClass' with the actual Class of your  textbox




you can write this code in html snippet inside javascript section and put this snippet in popup page.


May be this will help you.