javascript - jQuery: How to disable tab key action on the regform with sliding mechanism -


i have problem tab function tab key moves regform slide when pressed couple of times. how can disable tab regform area only.

here's html

https://jsfiddle.net/tbtt86u5/

i've seen link it's not working on situation. tab still working on form slides every element.

i tried using tabindex doesn't work on side. elements of form still sliding using tab.

<script>  $('.steps').keydown(function (e) { var code = (e.keycode ? e.keycode : e.which); console.log(code); if (code == 0 || code == 9) {         e.preventdefault();     } }); </script> 

i appreciate help!

document.queryselector('input').addeventlistener('keydown', function (e) {      if (e.which == 9) {          e.preventdefault();      }  });
first name:<input type='text' />  <br/>  last name:<input type='text' />


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -