Add tabindex="-1" to your element, set this attribute to -1 can make this element unfoucsable.
tabindex="-1"
So, you can add/remove this attribute dynamicly