security concerns for tooltips

Ramya Gollapudi 1 Reputation point
2021-06-07T10:16:52.71+00:00

We have a requirement to show the tooltips on ASP.Net WebApplication. This tooltips would contain the information about the Regular Expression. For eaxmple: First Name Textbox: Hover on this text box, there should be a tool tip that contains text like this - A-Aa-z0-9@# etc.

There are two options here:
Display the regex on the hover of textbox
Include a icon near to label. The Regex would be displayed on hover of that icon.

Wanted to know which option is best and why.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,815 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.