Allow reset button to ignore form validation

I am using the below JavaScript to validate a form field when information is entered and it is trigged on blur. When the user clicks the reset button, this javascript still runs and the validation error appears. Can someone help me make the reset button truly "reset" the page and all validations? Thank you.
function CheckIt(ID)
  var cfcAsAjax = new jsobj();
  x = cfcAsAjax.Checkthenum(ID);
  if (x==true) {
    document.getElementById('labelthenum').innerHTML = '<span>The Number:</span>';
  else {
    document.getElementById('labelthenum').innerHTML = '<span>The Number:</span><br><span class="red"><strong>Please enter a valid number</strong></span>';

Open in new window

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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.

Julian HansenCommented:
You will need to provide more code than that. We need to see the markup for the form as well as the mechanism for triggering the validation.
earwig75Author Commented:
<label for="thenumNumber" id="labelthenum">Incident Number: </label>

<input type="text" name="thenumNumber" ID="thenumtNumber" onBlur="CheckIt(this.value)" maxLength="12"  value="">

Open in new window

Julian HansenCommented:
@eerwig75 - that is still not helpful. Where is the reset button markup? Given that is central to your question it is important that we see it in context. In addition there are often side effects in code that are not evident unless you are looking at all the code.

Is there a reason you are not posting a full listing of form + javascript?
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

earwig75Author Commented:
The reset button is just a standard reset button.
I ended up just allowing the focus to leave the field if it is blank.
Mukesh YadavFull Stack DeveloperCommented:
May you share entire html and js?
earwig75Author Commented:
I shared all I can and what I feel is important. If it's not enough I guess I will close the question.
Julian HansenCommented:
Make your CheckId execute on Form submit instead of blur.

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
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

From novice to tech pro — start learning today.