| Ennio wrote: |
I have a cfform, and I need to check if the user entered the valid email address, so I created two email fields for the user to enter it.
Now how can I check to see if one is equal the other? I'm using cf validation, so when I create my JS to check is both fields are the same it doesn't work. any idea on how can I do that? I'm checking if both fields are the same when I submit the form. |
If you want to check if both are equal, don't use CFForm. CFForm can't do that. You can still use cfform for other validation, just make those two inputs just regular <input> then write your javascript to check them.