Hi
In below code i want User can enter . (Dot) also in pattern.
Code
Department Name *Thanks
Hi
In below code i want User can enter . (Dot) also in pattern.
Department Name *Thanks
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Naimish MakwanaRank #324 · 7.7K reputationPosted Sep 2, 2024, 4:11 AM EDT
To allow users to enter a dot (.) in the pattern, you need to update the
patternattribute in yourelement. The dot character needs to be escaped with a backslash (\) in the regular expression. Here’s the updated code:This change allows the input to include alphabets, spaces, and dots.