You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See whether you can get past the above input field using the keyboard alone... Cannot? this is because the implementation of a lookahead is not doing the correct thing.
</p>
<div id="chosen">
<label>
You want to be here
<input type="text" name="name" id="name" />
</label>
</div>
</form>
<script>
jQuery(document).ready(function () {
jQuery('#lookahead').on('keydown', function (e) {
var keyCode = e.which;
if (keyCode != 8) {
var character = String.fromCharCode(keyCode).toLowerCase();
var value = jQuery(this).val() + character || '';
jQuery('#suggestions').empty().append(jQuery('<p> Stuff that begins with: ')