Test Focus/Select Chrome

by Bruno G.

HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<form method="post">
<select name="selLngInt" id="selLngInt" onchange="setInterfaceLang(this.value);">
  <option value="en_EN">English</option>
  <option value="fr_CA" selected="selected">Français</option>
</select><br>
<input name="u1" id="u1" type="text" maxlength="400" autocomplete="username" value="asd" onfocus="this.select();"><br>
<input name="u2o" id="u2o" type="password" autocomplete="current-password" onfocus="this.select()">
<input type="submit" value="GO">
</form>

JavaScript

jQuery(function($){
	$('input:visible:enabled:first').trigger('focus');
});