-
Notifications
You must be signed in to change notification settings - Fork 0
/
messageboxjqueryui.html
65 lines (55 loc) · 1.08 KB
/
messageboxjqueryui.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<html>
<head>
<link rel="stylesheet" href="jquery-ui/jquery-ui.css">
<link rel="stylesheet" href="jquery-ui/jquery-ui.structure.css">
<link rel="stylesheet" href="jquery-ui/jquery-ui.theme.css">
<style>
.mydivs{
border:5px solid rebeccapurple;
margin:5px;
}
</style>
</head>
<body>
<h2>Message box in jquery UI</h2>
<div id="firstdiv" class="mydivs">
<h3>Hello welcome to shayariYouth</h3>
<br>
<button id="btn1" onclick="clicked">Click to show message box</button>
</div>
<div id="messagebox" title="Messaagebox" class="mydivs">
<h3>Welcome to the world of fun and earn</h3>
<br><button >Click me</button>
</div>
</body>
<script src="jquery.js" type="text/javascript">
</script>
<script src="jquery-ui/jquery-ui.js" type="text/javascript"></script>
<script>
$("#firstdiv").click(function(){
$("#messagebox").dialog({
title:"Custom message box",
draggable:false,
resizable:false,
modal:true,
buttons:[
{
text:"Close",
icon:"ui-icon-heart",
click:function(){
$(this).dialog("close");
}
},
{
text:"Ok",
icon:"ui-icon-heart",
click:function()
{
$(this).dialog("close");
}
}
]
});
});
</script>
</html>