root/lang/javascript/jQuery.placeholder/sample.html @ 30963

Revision 30963, 0.8 kB (checked in by syttru, 6 years ago)

lang/javascript/jQuery.placeholder 新規作成

Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja"> 
4<head> 
5<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
6<title>プレースホルダ - JQuery実装</title> 
7<script type="text/javascript" src="jquery-1.3.2.min.js"></script> 
8<script type="text/javascript" src="jquery.placeholder.js"></script> 
9<script type="text/javascript">
10// <![CDATA[
11$(document).ready(function(){
12  $('#search').placeholder('検索したい単語を入れてね♪');
13});
14// ]]>
15</script>
16<style>
17.placeholder {
18  color: gray;
19}
20</style>
21</head>
22<body>
23<input type="text" id="search" style="width:200px"/>
24</body>
25</html>
Note: See TracBrowser for help on using the browser.