TOLONG BIKIN MENJADI 2 KOLOM BARU BISA MELAKUKAN PENCARIAN BAGAIMANA PLEASEEEE?????
CONTOH SCRIPT
<script type="text/javascript">
$(document).ready(function(){
function search(){
var judul=$("#search").val();
if(judul!=""){
$("#result").html("<img src='img/ajax-loader.gif'/>");
$.ajax({
type:"post",
url:"get.php",
data:"judul="+judul,
success:function(data){
$("#result").html(data);
$("#search").val("");
}
});
}
}
$("#button").click(function(){
search();
});
$('#search').keyup(function(e) {
if(e.keyCode == 13) {
search();
}
});
});
</script>
</head>
<body>
<div id="container">
<input type="text" id="search" placeholder="Cari Artikel Berdasarkan Judul"/>
<input type="button" id="button" value="Cari" />
<ul id="result"></ul>
</div>