I need not to focus on readonly input and when user tab it should jump to next write field.

    <input type="text" name="first"></input>
    <input type="text" name="second" readonly="readonly"></input>
    <input type="text" name="third"></input>
    <input type="text" name="fourth"></input>
    <input type="text" name="fifth" readonly="readonly"></input>
    <input type="text" name="sixth"></input>

$(document).ready( function(){
    $('input').focus(function(e) {
            var readonly = $(this).attr("readonly");
            if (readonly) {


Try something like this (completely untested):


    $('#' + $(this).attr('data-nextElement')).focus();



<input type="text" id="txtText1" />
<input type="text" id="txtText2" readonly="readonly" data-nextElement="txtText3" />
<input type="text" id="txtText3" />
<input type="text" id="txtText4" />
<input type="text" id="txtText5" readonly="readonly" data-nextElement="txtText6" />
<input type="text" id="txtText6" />
<input type="text" id="txtText7" />
<input type="text" id="txtText8" readonly="readonly" data-nextElement="txtText1" />