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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.