How to make a field in web form NOT required

Currently if I try to submit the contact form on my website, it will not submit unless all of the fields are completed.  I can not figure out how to edit the code to stop requiring certain fields.  For example, I don't want the website field required in my form.  Can anyone tell me how to do that?  

Contact Form HTML
<h2>Contact Form</h2>
								<form id="form1">
									<div class="success"> Contact form submitted!<br>
										<strong>We will be in touch soon.</strong> 
									</div>
									<fieldset>
										<label class="name">
											<input type="text" value="NAME:">
											<span class="error">*This is not a valid name.</span> <span class="empty">*This field is required.</span> </label>
										<br>
                                        <label class="company_name">
											<input type="text" value="COMPANY/ORGANIZATION NAME:">
											<span class="empty">*This field is required.</span> </label>
										<br>
                                        
                                        <label class="website">
											<input type="text" value="WEBSITE:">
										</label>
										<br>
										<label class="email">
											<input type="email" value="E-MAIL:">
											<span class="error">*This is not a valid email address.</span> <span class="empty">*This field is required.</span> </label>
										<br>
										<label class="phone">
											<input type="tel" value="PHONE:">
											<span class="error">*This is not a valid phone number.</span> <span class="empty">*This field is required.</span> </label>
										<br>
                                        	
                                        	<select class="time">
                                            	<option value="">BEST TIME TO CONTACT YOU:</option>
                                                <option value="am">Contact me in the a.m.</option>
                                                <option value="pm">Contact me in the p.m.</option>
                                            </select>
                                            
                                       <br>
                                      
                                        	<select class="question">
                                                <option value="">SELECT ONE:</option>
                                            	<option value="new_business">Help with starting a new business</option>
                                                <option value="business_plan">Help with writing a business plan</option>
                                                <option value="audit">Company audit/analysis</option>
                                                <option value="project_mgmt">Project Management</option>
                                                <option value="other">Other</option>
                                            </select>
                                           
                                        <br>
                                            
                                        
										<label class="message">
											<textarea>ASK YOUR QUESTION:</textarea>
											<span class="error">*The message is too short.</span> <span class="empty">*This field is required.</span> </label>
										<br>
										<div class="btns"><a href="#" class="btn" data-type="submit"><span></span>Send</a><a href="#" class="btn" data-type="reset"><span></span>Clear</a></div>
									</fieldset>
								</form>

Open in new window


Attaching the two "send mail" associated files
C--Users-0BE000774-Documents-Website-.js
C--Users-0BE000774-Documents-Website.php
deeayrianAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

zephyr_hex (Megan)DeveloperCommented:
It looks like if you add a class to non-required elements, your javascript will not flag them as required.  In your js file, the following is defined:

notRequiredCl:'notRequired',

Open in new window


so, in your html, add the class 'notRequired' to the non-required elements.  Example:

<input type="text" class="notRequired" value="WEBSITE:">

Open in new window

1

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
deeayrianAuthor Commented:
I saw that notRequiredCl but wasn't sure how to apply it. I didn't realize it was a class.
Thank you so much!  It works great now!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.