My school is running a project to build a website that containts register and login . Of course , the level of the instructors in my country is low , and we are required to use Javascript to check the inputs in the form , instead of using ASP.NET to do it .
So , let's get to the question :
I'm having few inputs , like this :
<asp:TextBox id="usname" runat="server" MaxLength="20" value="שם משתמש" TextMode="SingleLine" CssClass="usernameInput" onfocus="this.value=''"></asp:TextBox>
<asp:TextBox ID="email" runat="server" MaxLength="40" value="אימייל" TextMode="SingleLine" CssClass="emailInput" onfocus="this.value=''"></asp:TextBox>
<asp:TextBox ID="password" runat="server" MaxLength="20" value="סיסמה" TextMode="Password" CssClass="passwordInput" onfocus="this.value=''"></asp:TextBox>
<asp:TextBox ID="passwordRepeat" runat="server" MaxLength="20" value="אימות סיסמה" TextMode="Password" CssClass="passwordRepeatPassword" onfocus="this.value=''"></asp:TextBox>
While trying to identify the field with it's id , Javascript won't recognize it . What can I do in order to keep this Textboxes , and check the input with Javascript ?
Thanks in advance , Iliya