Jump to content

input masks without javascript


uncleronin

Recommended Posts

is it possible to create input masks without using javascript? I know a common practice is to split up textfields so that a user sort of gets an idea of what to expect. This and actually displaying the mask in both the textfield and the associated label [like D.O.B (dd/mm/yyyy): ...] are also useful but still don't stop stupid people from being stupid and misentering information or entering in letters were there should be only numbers.

 

I guess what I'm really asking is if there is a way to either prevent certain characters from being entered AND enforcing that certain characters be entered in certain positions WITHOUT javascript? With javascript this is incredibly easy but without it all hell breaks loose *waves first at company with javascript enabled*

 

Anybody got any ideas on the best non-JS 'inpuy masking' or on actual masking? *sigh*

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.