JSFiddle - React, Tailwind, and code Playground
by joelpurra
HTML
<input id="txtAd" value="Press tab here" />
<input value="Any other text input" />
<input id="txtSoyad" value="Initial value" />
Answer to stackoverflow question <a href="http://stackoverflow.com/q/5858147/907779">javascript tab key problem? in textbox</a>.
CSS
input
{
display: block;
min-width: 250px;
}
JavaScript
$("#txtAd").keydown(function(e) {
if (e.which === 9) {
$("#txtSoyad").val('Replaced value with when tab was pressed');
};
});