Skip to main content
7 events
when toggle format what by license comment
S Nov 21, 2023 at 23:01 history suggested Samuel RIGAUD CC BY-SA 4.0
Add JS linting
Nov 21, 2023 at 16:19 review Suggested edits
S Nov 21, 2023 at 23:01
Sep 24, 2016 at 7:50 history edited Peter Mortensen CC BY-SA 3.0
Copy edited.
Mar 7, 2014 at 13:16 comment added Whelkaholism The other problem with code like this is your serverside code has to deal with placeholder text as empty input, which has problems with edge cases where you want to enter a town called "Town". Instead of checking values against the placeholder text you should really use a data-modified flag on the input, and then clear the input on form submit if the flag is not set. And for AJAX interfaces you may not even have a form, so you should be able to associate an arbitrary submission event with the input. This is one of those really simple situations that isn't.
Dec 10, 2013 at 19:31 comment added Redtopia This is the old way of doing it, which I've used quite a bit. The disadvantage is that the placeholder text disappears when you focus. I've found this to be annoying when the UI doesn't also include labels next to the input. Over the past several months I've started replacing this method with using placeholder text, which I think is a UX improvement.
Oct 29, 2013 at 17:20 history edited James Donnelly CC BY-SA 3.0
added 31 characters in body
Apr 14, 2013 at 2:28 history answered Dragos Rizescu CC BY-SA 3.0