DEV Community

Discussion on: FormData doesn’t include disabled fieldsets

Collapse
 
grahamthedev profile image
GrahamTheDev

As intended, plus “disabled” is a terrible experience for screen reader users as the field becomes hidden and you can’t then read the information in it.

Instead use readonly and then you can style it in CSS with [readonly]{} to make it look disabled 👍

Collapse
 
starbist profile image
Silvestar Bistrović

I never thought of it, but this is golden advise. Cheers!

Collapse
 
grahamthedev profile image
GrahamTheDev

No probs! I honestly didn’t know that for data excluded it also so thanks for the TIL! ❤️

Thread Thread
 
starbist profile image
Silvestar Bistrović

Yes, I didn't know that either. That's why I wrote the article and that's why I requested to add it to the MDN article: developer.mozilla.org/en-US/docs/W....