if you want to get server side text box value in client side using javascript see the below code and just copy and paste it.
fname=document.getElementById("<%= Txt_Fname.ClientID %>").value;
Tags:
javascript