var strEmails = document.getElementById('<%=txtEmail.ClientID%>').value; var txt = document.getElementById('txt'); txt.value = strEmails;