jquery wizard in IE

I have a  jquery wizard with a few steps and I set it up with a code when you hit the next button it adds a # to the url so if the user pushes the back button, the page doesn't go back a whole page, but just the step The code works in chrome , but not in IE.
http://www.kars4kids.org/ppc/brand.asp
 is there a known problem or a fix i an use for this?
rivkamakAsked:
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.

Rainer JeschorCommented:
Hi,
the issue is that in the file "cartype.js" you have in the middle between functions the usage of the jQuery shortcut "$" to bind events to the form keyup
$("#form1").on("keyup" ...

Open in new window

But you load the jQuery file ways later.
Solution:
Put the jQuery reference as first entry (of all JavaScript file refs) in the head section of your page.

HTH
Rainer
0
rivkamakAuthor Commented:
I need this code to clear my error fields.
What does it have to be to be validated?
	$("#form1").on("keyup", ".error-redInput", function() {
     if( $.trim($(this).val()).length > 0 ) {
          $(this).removeClass("error-redInput");
     }
	 });
	$("#form1").on("keyup", ".error-redSelect", function() {
     if( $.trim($(this).val()).length > 0 ) {
          $(this).removeClass("error-redSelect");
     }

});

Open in new window

0
Rainer JeschorCommented:
Simply move
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>

Open in new window

right after
<meta charset="utf-8">

Open in new window

so that it is the first referenced JavaScript file.
HTH
Rainer
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Rainer JeschorCommented:
And therefore it is loaded before the cartype.js.
0
rivkamakAuthor Commented:
so the concept works that the back button doesn't go back a page and stays on the same page, but it doesn't bring it back on the step they were up to like it does work on chrome.
0
leakim971PluritechnicianCommented:
why do you still have jquery after cartype.js?

RainerJ asked you to put it before
0
rivkamakAuthor Commented:
I moved it down, and it's not helping the situation,.
0
leakim971PluritechnicianCommented:
The goal was to moving jQuery up and let it at this place to see what happen now
0
rivkamakAuthor Commented:
jquery is the top of the page also.
0
leakim971PluritechnicianCommented:
check the table to see if your IE support pushstate : http://caniuse.com/#search=pushstate
0

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
rivkamakAuthor Commented:
caniuse says that pushstate should work in IE 10 and 11, but this code isn't working there either.
0
leakim971PluritechnicianCommented:
that work fine on my IE11 and IE8 (clicking on the green button and click on IE brower back button)
0
rivkamakAuthor Commented:
the page doesn't go back a step in the wizard
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.