HTML
What's the difference between readonly and disabled in form controls? I found myself asking this question when implementing a very specific feature.
I'm making a form to send data, but I also want to include some generic information that the user doesn't need to enter. So I added another <input>
element and gave it a visually-hidden
class. But then I was faced with a question...do I set it to disabled
or readonly
?
After consulting this thread, I settled on readonly
because it appears that the value of disabled
inputs won't be sent when the form is submitted.
Not Sure How I Feel About "Was This Helpful?" Widgets
Let's say "Was This Helpful?" widgets have these two goals: 1) Survey users to see if your article was helpful. 2) Help users if they select "No" by pointing them somewhere else. If that's the case, then these widgets are far from perfect.
Author
Date
Nov 29, 2024
To Scroll, To Stick, Or To Stay: Sidebars
Why sidebars are still so popular is a mystery to me. Not that I'm against sidebars—I love them too. But as to why the rest of the industry still loves them alludes me, because I feel they require so much more design considerations than other widgets.
Author
Date
Nov 23, 2024
Building A Screenwriter App That Uses Markdown Syntax
I've always wanted to try my hand at screenwriting, but I found them painful to format in traditional document editors. While there exists screenwriting software for this purpose, I don't feel like learning a whole new software. So instead, let's make a whole new software!
Author
Date
Nov 23, 2024
Deprecated HTML Elements
Some time ago, I needed to make some scrolling text for a site I. Text that scrolls from left to right so long strings can be read without needing line-breaks.
Author
Date
Nov 23, 2024
Previous
Next