문제

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