jQuery-Mask-Plugin
jQuery-Mask-Plugin copied to clipboard
editing the default value?
could you pls tell me how to set default value and editing it.
am trying to achieve it for Time as show below. i want to load my input field with default like 00:00:00 if i try to edit the field this should be changed with whatever user desired input like 02:14:00
i gone through your demo from http://igorescobar.github.io/jQuery-Mask-Plugin/ . i tried to edit value after i gave input. but it seems not get edited.
PFA,
i insert cursor in middle the value and pressed number key to change time. but its not changing.
currently am using some other plugin, but not satisfied due to facing cursor jumping issue i wish to use your plugin.
My requirement is:
- input field loaded with default value as 00:00:00
- user can edit anywhere he wants to edit when insert the cursor.
Kindly help me to achieve this
Thank you
Hi @suriyaJaay
To edit input at the current cursor position, it is necessary to clear that character before. Position the cursor, type delete or backspace and the new value! If you need to insert another number as soon as you type another value, you will need to make some adjustments to your code, perhaps make a custom function in the "keypress" method of the plugin.