These are chat archives for MontCode/GeneralChat

29th
Oct 2016
JBC944
@JBC944
Oct 29 2016 15:06
hey everyone
I got a problem and I am looking in the book but I cant seem to figure it out
JBC944
@JBC944
Oct 29 2016 15:20
How do you validate a zipcode on a form
I put in the pattern but it does not work
Lily Romano
@Lilyheart
Oct 29 2016 15:28
paste your code here @JBC944 To put code nicely into chat, first hit the ` key three times (it's near the esc key), press shift+enter paste the code then hit shift+enter again and then the that key three times again.
so your chat line will look like
```
code here
```
JBC944
@JBC944
Oct 29 2016 18:21
I cant get it work
Lily Romano
@Lilyheart
Oct 29 2016 19:37
2 things pattern is misspelled and you don't need to escape the - in the regex (take the forward slash out that is before the - ) ^\d{5}(-\d{4})?$ (and you might want to put a space before name
@JBC944
the back tick thing I was saying about before is to put the code here in chat so we can see it.
 <p>Zip Code:<input pattern="^\d{5}(-\d{4})?$" name="zipcode" id="zipcode"></p>
JBC944
@JBC944
Oct 29 2016 19:48
what part of the code am i taking out
Lily Romano
@Lilyheart
Oct 29 2016 19:48
my code above in black is correct code
compare that to your code
JBC944
@JBC944
Oct 29 2016 20:02
i fixed it
Lily Romano
@Lilyheart
Oct 29 2016 20:05
awesome!
JBC944
@JBC944
Oct 29 2016 20:06
i think i type a little to fast when i code lol
and thats when i get a typo lol
Lily Romano
@Lilyheart
Oct 29 2016 20:06
me too xD with practice you'll learn to spot the syntax errors.
JBC944
@JBC944
Oct 29 2016 20:15
i am so close in canceling my gamestop subscription
Lily Romano
@Lilyheart
Oct 29 2016 20:16
heh. i've done that off an on over the years
JBC944
@JBC944
Oct 29 2016 20:16
want to know why
i signed up for their newsletter and weekly ad
never recive it
i am supposed to get exclusive offers not one single exclusive offer
Lily Romano
@Lilyheart
Oct 29 2016 20:17
you can log in and check your contact details for correctness.
JBC944
@JBC944
Oct 29 2016 20:17
its setup to be sent to me by email
my email correct nothing is in spam
or even promotions