2017-02-02 6 views
0

私の検証は、ブロックまたはフィールドセットで動作します。オーナーブロックまたはフィールドセットのテキストボックスの検証方法(HTMLコントロール)

<fieldset> 
<legend>block</legend> 
    <input placeholder="ID" id="txtID" type="text" value="" runat="server" required oninvalid="this.setCustomValidity('please fill this')"/> 
    <asp:Button runat="server" ID="Button1" Text="Ok" /> 
</fieldset> 

ありがとうございます。

答えて

0

ol。 答えは:

<form action="#"> 
<fieldset> 
    <legend>block</legend> 
    <input placeholder="ID" id="txtID" type="text" value="" runat="server" required oninvalid="this.setCustomValidity('please fill this')"/> 
    <asp:Button runat="server" ID="Button1" Text="Ok" /> 
</fieldset> 
</form> 
関連する問題