タグ

関連タグで絞り込む (2)

タグの絞り込みを解除

JavaScriptとformに関するjay-esのブックマーク (2)

  • Form Validation Using JavaScript's Constraint Validation API

    Form validation is one of the primary reasons to use client-side JavaScript. It can prevent user entry errors before your app attempts to submit data to the server. But… client-side validation is not a substitute for server-side validation! Always check incoming user data on the server. Not every request will come from a browser nor will every browser run validation code. Client-side validation is

    Form Validation Using JavaScript's Constraint Validation API
    jay-es
    jay-es 2022/01/15
    前半はHTML フォームの type や属性、CSS 擬似クラスの説明。後半から Constraint Validation API の説明、カスタムバリデーションなど
  • Javascript Input Mask

    Features get and set value and unmasked value easily no external dependencies supports overwrite mode supports all major browsers supports web components supports contenteditable RegExp mask Function mask Number mask (integer and decimal support) Date mask (with various format support and autofix mode) Dynamic/on-the-fly mask Pattern mask show placeholder always or when needed unmasked value can c

    jay-es
    jay-es 2021/07/10
    入力フォーム内で整形(数字にカンマ、電話番号にハイフン)したり、整形済みのテキストから元の値(カンマなし数字)を取得するライブラリ。入力制限などもできる。依存なし、Vue, React などのプラグインも
  • 1