javascript - How to make lebel Invisible / Visible based on the Input given in the Search TextBox? -
i'm searching names using text box auto fillable. when enter name other list of auto fillable one's, need display label dynamically "please enter valid name" that. if remove wrong entry in test box, label should invisible.
<asp:textbox id="tbname" caption="enter name" runat="server"></asp:textbox> <asp:requiredfieldvalidator runat="server" id="uirequiredfieldvalidatorname" controltovalidate="tbname" /> <asp:button id="uibuttongo" runat="server" text="search" /> <asp:label id="uilabelsearch" runat="server"></asp:label> </p>
please let me know possible ways one. thanks
you should try in javascript. handle onchange event , check textbox value against auto fillable values. in code add tbname.properties.add("onchange","validatormethod(this);");. in javascript file add:
Comments
Post a Comment