Question

Uniform is a jQuery plugin for styling forms. In my application I am using it and I have to turn off uniform and turn it on again, I mean I need to restart it.

To turn on functionality of uniform on some of form elements following is to be done $("select, input, button, textarea").uniform();

Now I need to turn it off, I mean I want to have a functionality to rollback and bring back the old looks.

Can it be done? Thanks.

Was it helpful?

Solution

You can restore the original look (and unbind all the event handlers as well) by uniform itself: just use its restore method. Like this:

$.uniform.restore();

This method also can be called on the collection of elements.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top