forked from cherise-codes/database_project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
34 lines (26 loc) · 873 Bytes
/
index.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
<html>
<head>
<script src="js/jquery-1.6.2.min.js" type="text/javascript"></script>
<script src="js/jquery-ui-1.8.16.custom.min.js" type="text/javascript"></script>
<title>Search substring of sname in Sailors Table</title>
<script>
$(document).ready(function() {
$( "#searchSailorName" ).change(function() {
$.ajax({
url: 'searchSailorName.php',
data: {searchSailorName: $( "#searchSailorName" ).val()},
success: function(data){
$('#searchSailorNameresult').html(data);
}
});
});
});
</script>
</head>
<body>
<h3>Search substring of sname in Sailors Table</h3>
<input class="xlarge" id="searchSailorName" type="search" size="30" placeholder="Sailor's Name Contains"/>
<div id="searchSailorNameresult">Search Result</div>
<br/><br/>
</body>
</html>