Better HN
topnewbestaskshowjobs
Log inSign up

568ml

1 karma · joined Apr 12, 2022 (4y ago) · 2 submissions

Submissions

comment 4y ago · link · parent

A quick tap on an internal wall will give you a good clue as to which half of that range the house was built in. Hell, I’ve been told houses are now being built with stud party walls.

comment 4y ago · link · parent

If you’re only supporting USD, I would prefix the input with the dollar symbol, I.e. so that it appears to the left of the input rather than as a part of the input itself. This signals the website is accounting for the fact that the given value must be a quantity of USD.

You can use a type=number input and prevent bogus fractionals by setting the ‘step’ attribute on the input to ‘0.01’. This will do two things: the up/down clicker buttons will increment/decrement by 0.01, which IMO is all they’re useful for, and the browser should restrict values to two decimal spaces. Of course you still need to validate this on the backend.