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.

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top