preventDefault in Safari

后端 未结 3 887
轮回少年
轮回少年 2021-01-25 16:53

I have a textbox which has the code;


Now there is no e

3条回答
  •  感情败类
    2021-01-25 16:56

    in jQuery

    //Press Enter in INPUT moves cursor to next INPUT
    $('#form').find(':input').keypress(function(e){
        if ( e.which == 13 )
        {
            $(this).next().focus();  //Use whatever selector necessary to focus the 'next' input
        }
    });
    

    JAVASCRIPT

    
    

    and write

    
    

提交回复
热议问题