Jitendra Vyas
Jitendra Vyas

Reputation: 152677

How to make server side form validation compatible with screen reader

if screen reader fill any content wrong then how to give info (if javascript is disabled) to user to go that field any fill the correct value.

with JavasSript we can show javascript alert but if JavaScript is disabled then?

I need a solution for both ASP.NET 2.0 and PHP.

Upvotes: 0

Views: 480

Answers (1)

Quentin
Quentin

Reputation: 943586

There are two main things you should do:

Make it clear there was a problem by displaying an information message at the top of the page.

Place error messages inside label elements so they will be read in Forms mode. Make sure you have only one label element per input (some screen readers can't cope with multiple labels).

Upvotes: 3

Related Questions