first commit
This commit is contained in:
21
jquery/prx_search.js
vendored
Executable file
21
jquery/prx_search.js
vendored
Executable file
@ -0,0 +1,21 @@
|
||||
$(document).ready(function()
|
||||
{
|
||||
$('#search').keyup(function()
|
||||
{
|
||||
|
||||
if($(this).val().length >= 3 || $(this).val() == '%')
|
||||
{
|
||||
$.get("../admin/prx_search.php", {search: $(this).val()}, function(data)
|
||||
{
|
||||
$("#results").html(data);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
$("#btnSubmit").click(function(){
|
||||
$.get("../admin/prx_search.php", {search: '%'}, function(data)
|
||||
{
|
||||
$("#results").html(data);
|
||||
});
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user