テキスト入力時(input)に文字制限のアラートメッセージを表示するCSSの記述 ※入力エリア(input)とアラートメッセージ(.input-error)のCSS記述です。必要に応じて変更して下さい。 <style type="text/css"> body{ text-align: center; padding: 20px; font-size: 16px; line-height: 1.8em; } h1{ text-align: center; font-size: 32px; line-height: 1.4em; } ul{ list-style:none; padding:0; } li{ margin-bottom:2em; } li span{ color: red; display: block; } .input-error{ border:2px solid re
![テキスト入力時(input)に文字制限アラートメッセージを表示する方法【jquery.maxcharwarning.js】|DAD UNION – エンジニア同盟](https://cdn-ak-scissors.b.st-hatena.com/image/square/9b1dc5423c744f8ca215c620286d49360ef83337/height=288;version=1;width=512/https%3A%2F%2Fdad-union.com%2Fwp-content%2Fuploads%2F2022%2F06%2Fpic20220607.jpg)