まだデータがありません。
入力フォーム内にラベルを付加する「Label in Place」
当ページのリンクには広告が含まれています。
スポンサーリンク
入力フォーム内にラベルを付加するプラグイン「Label in Place」を紹介します。
jQueryプラグイン「Label in Place」
このプラグインを使えば、入力フォームの中にラベルを加えることができます。
フォームをクリックするとラベルはそのままで、フォーム領域が広がるアニメーション効果付きなので、ユーザーにやさしいフォームを作成することができます。
スポンサーリンク
デモの入力フォームをご覧ください。
デモのソース(HTML + jQuery)
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="description" content="Label in Place のデモでーす。">
<title>Label in Place - jQuery Plugin Demo</title>
<link rel="stylesheet" href="jquery.labelinplace.css">
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
<script src="jquery.labelinplace.js"></script>
<script>
$(function () {
$(".labelinplace").labelinplace();
});
</script>
</head>
<body>
<p><a href="https://webkaru.net/jquery-plugin/label-in-place/">「jQueryプラグインまとめ」に戻る</a></p>
<h1>Label in Placeのデモでーす。</h1>
<form>
<label for="comment">コメントちょーだい</label>
<textarea class="labelinplace" rows="3" name="comment"></textarea>
<button type="submit">送信</button>
</form>
<section>
<div class="highchart-container"></div>
</section>
</body>
</html>
スポンサーリンク