reset password
Author Message
kmayho
Posts: 62
Posted 12:40 Nov 24, 2015 |

can anyone help me out?

I used javascript for it to jump to the thanks for subscribing page but i cant seem to get it to check the data validation.

Has anyone gotten this to work or can give me some tips?

thanks

4542elgh
Posts: 71
Posted 13:13 Nov 24, 2015 |

go to your html and at your text box (where you want your validation going to be)  add an attribute pattern="xxx" where xxx is the validation pattern you need to put in. for a list of the validation pattern go to lecture notes chapter 11 scroll down to slide 54,  type in the pattern and your form will now have validation on specific text box

Good Luck!

kmayho
Posts: 62
Posted 14:07 Nov 24, 2015 |

I understand what we need to do but when i try to make it all work. it wont progress. I have all the needed information  I feel but i can either get it to progress to the next page but won't check the data validation or it wont go forward at all

I am using javascipt. I attached my js. My form is below

any help would be helpful.

Code removed: ms
Attachments:
Last edited by msargent at 21:39 Nov 24, 2015.
4542elgh
Posts: 71
Posted 14:18 Nov 24, 2015 |

you typed your pattern with space (incorrect) remove all the spaces and try again

\d{5}([\-]\d{4})?

msargent
Posts: 519
Posted 21:38 Nov 24, 2015 |
Don't post large blocks of code here. Others could plagiarize.