jQuery masked input plugin. select all content when textbox receives focus

前端 未结 6 1558
挽巷
挽巷 2021-01-02 05:14

This is a followup question to this question:

select all contents of textbox when it receives focus (Javascript or jQuery)

Basically I am using a textbox in

6条回答
  •  盖世英雄少女心
    2021-01-02 05:20

    if your 'completed' function doesn't work, try to replace this line:

    if (settings.completed && next == len)

    (this is line number 169 of noncompressed plugin) with that:

    if (settings.completed && eval(+next - 1) == len)

    While using this plugin with firebug, i've noticed, that 'next' variable jumps up over a symbol when last char of mask entered. This way should work.

提交回复
热议问题