JSFiddle - React, Tailwind, and code Playground
JavaScript
$(function() {
var $dialog = $('<div>\
<label>A<input id="a" type="text"></label>\
<br>\
<label>B<input id="b" type="text"></label>\
<br>\
<label>C<input id="c" type="text"></label>\
</div>');
$dialog.dialog({
autoOpen: true,
open: function() {
$('#c').keydown(function(e) {
if(e.keyCode !== $.ui.keyCode.TAB) return;
e.preventDefault();
$('#b').focus();
})
}
});
});