Jump to content

(How to?) Mask fields by class, not by name. Javascriptools2, PHP named fields.


Repgahroll

Recommended Posts

Hello there. (sorry my english)

 

I have a php form that has several fields named in sequence, for example: phone1, phone2, phone3... this is what i need to get these fields via $_post method. The problem is, the fields should have a mask (the same mask, for example ###-####). And i'm using Javascriptools2 to do this. However, i don't want to use a javascript "for" statement because it slows down some browsers on old systems and the compatibility is bad also.

 

So i wonder if there's another way to do this using some other parameter of the field, like the 'class' or something that can be unique and applied to all fields.

 

Thanks in advance.

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.