<?xml version="1.0" encoding="EUC-KR" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=EUC-KR" /> <title>Insert title here</title> <link type="text/css" href="css/custom-theme/jquery-ui-1.8.21.custom.css" rel="stylesheet" /> <script type="text/javascript" src="js/jquery-1.7.2.min.js"></script> <script type="text/javascript" src="js/jquery-ui-1.8.21.custom.min.js"></script> <script type="text/javascript" src="js/jquery.ui.datepicker-ko.js"></script> <script type="text/javascript">
$(function(){ $('#dp').datepicker({"dateFormat":"yy/mm/dd","minDate":0,"maxDate":"+1y","show":"explode"});
$('#pop').dialog({"autoOpen":false, show:"explode", hide:"fade", modal:true, buttons:{ "확인":function() { $(this).dialog('close'); }, "취소":function() { $(this).dialog('close'); } } }); }); function show(){ $('#pop').dialog('open'); }
</script> </head> <body> <input type ="button" onclick="show();"/> <div id="pop"> 배고프다 밥먹자 </div> <input type="text" id="dp" readonly="readonly"/> </body> </html> |