エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
{js} onFocus()のシンプルなサンプル。 - html css, javascript
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
{js} onFocus()のシンプルなサンプル。 - html css, javascript
<script type="text/javascript"> function hoge(bar){ bar.className = "geho01"; } </script> <style>... <script type="text/javascript"> function hoge(bar){ bar.className = "geho01"; } </script> <style> .geho01 { border:2px #ff0000 dashed; } </style> <form name="frm"> <input value="" onFocus="hoge(this)"><br> <input value="" onFocus="hoge(this)"><br> <input value="" onFocus="hoge(this)"><br> </form> よく調べると、 jQueryにも全く同じイベントが有りました。jQueryはまったく便利です。 focus(fn) - jQuery 1.3.2 日本語リファレンス blur(fn) - jQuery 1