I have a textbox where I am calling a function with the 'onkeypress' event, but every time I call the function the page refresh, how can I do this in Ajax?
<input style="height:39px; margin-bottom:10px" onKeyPress="submitMe(event)" name="team" class="form-control" id="team" type="text">
Javascript function
function submitMe(event)
{
if (window.event.keyCode == 13)
{
navigateToLink('team', document.getElementById('team').value);
}
}