tab index via tab name

tab index via tab name

Hi,
Can anyone please help me with couple of doubts.

1> Via JQ, how to get the tab index via tab name/taxt?

2> Is it possible to add tabIndex automatically?

Thanks