我需要编写一个 javascript 或 jquery 函数来类似于 html5 中所需的验证来显示验证气泡消息,但我不想使用所需的标签,因为我在按钮上使用自定义验证器
有什么建议么?
请注意,我是带有 vb 的 asp.net
 <p> 
      <label for="username" class="uname" data-icon="u" > Your username </label>
                                <asp:Textbox runat="server" id="username" name="username" type="text" placeholder="myusername"/>
</p>
<p> 
   <label for="password" class="youpasswd" data-icon="p"> Your password </label>
     <asp:Textbox runat="server" id="password" name="password" type="password" placeholder="eg. X8df!90EO" /> 
</p>