FIND YOUR NEXT FEW LINES
Results for “Text validation & encoding”
Small, practical examples. Search by task or narrow things down below.
545 snippets foundClear filters
Use a default value for an unset variable
Supply a fallback without changing the original variable.
parameter expansion✓ Tested
Validate a field when focus leaves it
jQuery: focusout bubbles and can support delegated form validation.
jQuery✓ Tested
Validate an email input
Use browser constraint validation for a required HTML email field.
HTML✓ Tested
Wrap long words
Allow long unbroken text to wrap within a CSS box.
CSS✓ Tested
Write a UTF-8 file
Use the built-in Node.js filesystem API to save text.
JavaScript✓ Tested