This is a kind of similar duplicate to some others here, but I think I\'m using event.preventDefault() correctly in this case.
event.preventDefault()
Here\'s a JSFiddle you ca
The variable event in your code is not initialized.
event
http://jsfiddle.net/SeEw2/4/
extract :
$('#ajaxsearch').click(function(event) { // Stop the Search input reloading the page by preventing its default action event.preventDefault();