Skip to content

Commit

Permalink
Phone validation added
Browse files Browse the repository at this point in the history
  • Loading branch information
akash70629 authored Oct 25, 2024
1 parent eaa921c commit e705fce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/(app)/contactus/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ const EnhancedFormPage = () => {
value={phone}
onChange={(e) => setPhone(e.target.value)}
required
pattern="[0-9]{10}" maxlength="10" oninput="this.value = this.value.replace(/[^0-9]/g, '');"
className="w-full p-2 border border-gray-300 rounded focus:outline-none focus:ring focus:ring-red-500"
/>
</div>
Expand Down

0 comments on commit e705fce

Please sign in to comment.