Lo intente, no me manda error, pero sigue como en el principio, yo creo que el error se encuentra ahi, si quieres puedes darle una checada al codigo, no es muy largo.
Código js:
Ver original$(function() {
$('#consulta input[type:"text"]').keypress(function(e){return e.which!=13})
$(".search_button").click(function() {
var search_word = $("#search_box").val();
var dataString = 'search_word='+ search_word;
if(/^(\d{9}-\d{1})$/.test(search_word)){
$("#searchword").html('<font color="red"><i>La matricula no coincide con el formato, intente de nuevo.</i></font>');
}else
{
$.ajax({
type: "GET",
url: "consulta.php",
data: dataString,
cache: false,
beforeSend: function(html) {
document.getElementById("insert_search").innerHTML = '';
$("#flash").show();
$("#searchword").show();
$("#searchword").html('Resultados de: <font color="green"><i>'+search_word+'</i></font>');
$("#flash").html('<img src="img/load.gif" align="absmiddle"> Realizando la busqueda...');
},
success: function(html){
$("#insert_search").show();
$("#insert_search").append(html);
$("#flash").hide();
}
});
}
return false;
});
});