Adding A Dash In jQuery:
9
Adding A Dash In jQuery:
I am using an input box where I’ll enter the numbers or
a text string. The onkeyup event of the input box will
call a function, which will automatically add or insert a
dash (-) or a hyphen to the string, using Regex.
Adding A Dash In jQuery:

Adding A Dash In jQuery:

  • 1.
    Adding A DashIn jQuery: 9
  • 2.
    Adding A DashIn jQuery: I am using an input box where I’ll enter the numbers or a text string. The onkeyup event of the input box will call a function, which will automatically add or insert a dash (-) or a hyphen to the string, using Regex.