Reputation: 341
I have a Html textbox on my page, now I want it so you can only edit the values that are set on it.
Example:
Set value: 0:00 - 0:00 User can change it to: 8:30 - 9:30 or 11:30 - 12:35
I want to do it the correct way that the user can only insert this, not that I have to do a php check if he did edit the format.
Thanks in advance.
Upvotes: 0
Views: 797
Reputation: 8091
I think this is a plugin you're looking for:
http://digitalbush.com/projects/masked-input-plugin/
Where you can create masks to make a "custom" input format:
$("#startTime").mask("99:99 - 99:99",{placeholder:"0"});
Upvotes: 2