JSFiddle - React, Tailwind, and code Playground

HTML

<table align="center" cellpadding="6" border="0">
                            <thead>
                                <tr align="center" class="tituloTabela">
                                    <td colspan="2">Pesquisar Servidor</td>
                                </tr>
                            </thead>
                            <tbody>
                                <tr align="center" class="linhaImpar">
                                    <td>
                                        <input type="text" id="txtPesquisaServidor" placeholder="Digite a matrĂ­cula SIAPE ou nome" style="width: 250px;"/>
                                    </td>
                                    <td>
                                        <button id="btPesquisarServidor" type="button" class="botaoPesquisa botaoVerde">OK</button>
                                    </td>
                                </tr>
                            </tbody>
                        </table>

JavaScript

$(document).ready(function() {
	$('#txtPesquisaServidor').keydown(function(event){
		if(event.keyCode == 13) {
			var termoPesquisa = $("#txtPesquisaServidor").val();
			if(termoPesquisa){
				$.get("controle.php?acao=buscarServidor&termoPesquisa="+termoPesquisa, function(){
					location.reload(true);
				});
			} else {
				location.reload(true);
			}
		}
	});
});

$('#btPesquisarServidor').click(function() {
    var termoPesquisa = $("#txtPesquisaServidor").val();
    if(termoPesquisa){
        $.get("controle.php?acao=buscarServidor&termoPesquisa="+termoPesquisa, function(){
            location.reload(true);
        });
    }
});