Question: I have some text boxes,their value is being generated from some source.Hence upon editing them if i remove the values and then I click submit button my jquery validation doesnt work
I am using this jquery.

```
$(function() {$("#error1").hide();});

$('#save').click(function() { 

     $('input:text').each(function(){
       if( $(this).val().length == 0)
          $("#error1").show('slow');

    });
});

```

Through this jquery I want to validate my all textboxes.Even my required field validator not working.This may be an old question,but I tried to find the solution,but I didnt got any valid answer to it.Please help.

Answer: 
You wrote window.History. Did you include [history.js](https://github.com/browserstate/history.js) by Benjamin Lupton?
window.History and window.history is not the same thing as window.History referes to history.js and that makes the history backwards compatible with html4 browsers. 

Take a look at these two:

* [jQuery & history.js example](https://stackoverflow.com/questions/13553037/jquery-history-js-example)
* [jquery.history.js VS jquery-hashchange](https://stackoverflow.com/questions/16980735/jquery-history-js-vs-jquery-hashchange)
you can refer below answer 

[IE history push state](https://stackoverflow.com/questions/11705241/ie-history-push-state)

IE9 and below don't support `pushState`. You have an exception when calling the following line:

```
window.history.pushState(null, null, pathFullPage);

SCRIPT438: Object doesn't support property or method 'pushState' ?terms_and_conditions, line 62 character 21

```

You may probably be interested in looking at some workarounds discussed here: [Emulate/polyfill history.pushstate() in IE](https://stackoverflow.com/questions/6622449/emulate-polyfill-history-pushstate-in-ie)