<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/start/jquery-ui.css" rel="stylesheet">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.min.js"></script>
<script type="text/javascript" src="js/common.js"></script>
<title>サンプル</title>
</head>
<body>
<script>
$(function() {
// 1.ボタン1を押したとき
$("#id1").click(function() {
document.getElementById("memo").value = "green";
$("#test1").dialog({
modal:true, //モーダル表示
title:"テストダイアログ1", //タイトル
buttons: { //ボタン
"確認": function() {
$(this).dialog("close");
}
}
});
});
});
</script>
<form id ="form1">
<div id="test1" style="display:none;">
<p>備考</p>
<input type="text" id="memo" value=""/>
</div>
<form>
<tr>
<td><input type="text" id="name" value=""/></td>
</tr>
</table>
<table>
<tr>
<td><input type="button" id="id1" value="ボタン1" /></td>
<td><input type="text" id="txt1" value="" /></td>
</tr>
<tr>
<td><input type="button" id="disp" value="表示" onClick="getJson()"/></td>
<td><input type="button" id="dispList" value="リスト表示" onClick="getJsonList()"/></td>
</tr>
</table>
<ul id="output"></ul>
</body>
</html>
0コメント