Skip to content

Instantly share code, notes, and snippets.

@lb1a
Created January 23, 2012 22:55
Show Gist options
  • Save lb1a/1666100 to your computer and use it in GitHub Desktop.
Save lb1a/1666100 to your computer and use it in GitHub Desktop.
key event error
function search(dataid) {
var search=$('#searchText').val();
var filteredSearchString = search.replace(" ","%20");
callDb(dataid, filteredSearchString);
}
function callDb (dataId, searchString ) {
$.ajax({
url: "php/search.php",
data: { 'id': dataid, 'search':neu },
dataType: 'html',
success: function(data) {
$('#content').html(data);
}
})
}
function Event_Key() {
if(event.keyCode == 13) {
search(1);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment