Jump to content

Troubleshooting HTML-- ordering of code, form validation


Recommended Posts

I ran into a couple hiccups with my code and I'm having a hard time figuring out what is going wrong. 

I want the checklist in my code to appear after my form but the order is flipped and I'm not sure why. I also tried to incorporate some Javascript for the phone number section, but it still allows me to type in letters instead of numbers and doesn't cap the entries at 10 digits. 

Can anyone give me some suggestions? Thank you!

 

petition.txt

Link to post
Share on other sites

Without the CSS, I can't reproduce the issue. There's no Javascript in the attached file either.

You have some mistakes on this line of HTML which may cause some other, unrelated problems:

<input type="radio" name="occupanc" value-"Part-time">Part-time<br>

 

Link to post
Share on other sites
17 hours ago, Ingolme said:

Without the CSS, I can't reproduce the issue. There's no Javascript in the attached file either.

You have some mistakes on this line of HTML which may cause some other, unrelated problems:


<input type="radio" name="occupanc" value-"Part-time">Part-time<br>

What if I send the html file itself? Can you view it that way? (Sorry, beginner here). 

 

petition.html

Link to post
Share on other sites
23 hours ago, SMT said:

I ran into a couple hiccups with my code and I'm having a hard time figuring out what is going wrong. 

I want the checklist in my code to appear after my form but the order is flipped and I'm not sure why. I also tried to incorporate some Javascript for the phone number section, but it still allows me to type in letters instead of numbers and doesn't cap the entries at 10 digits. 

Can anyone give me some suggestions? Thank you!

 

petition.txt 820 B · 5 downloads

HTML file here. 

petition.html

Link to post
Share on other sites

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.   Paste as plain text instead

  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.

Loading...
×
×
  • Create New...