Ramco Ramco

Ramco Ramco

  • 439
  • 3.4k
  • 544.2k

Not accepting numeric value

Aug 31 2024 10:38 AM

Hi

  I have below condition but it is not accepting numeric values. It is accepting Alphabet & only Space.

                                        <div class="col-lg-6 col-md-6 col-sm-12">
                                            <div class="form-group">
                                                <label>Swift Code</label>
                                                <asp:TextBox ID="txtSwiftCode" MaxLength="25" class="form-control alpha" pattern="[a-zA-Z0-9\s]*" title="Valid characters: Alphabets,Numeric and Space." placeholder="Swift Code" runat="server"></asp:TextBox>
                                            </div>
                                        </div>

Thanks


Answers (2)