Sunny
Sunny

Reputation: 81

How to leave some input elements and submit buttons unstyled in uniform(jquery)??

Uniform is a form styling plugin. I am using this on my new website. This is really good and working perfect but I have a site search where I want to put my own css style. How do I leave those fields unstyled by uniform so they can be styled by css. ???

Please help../


Solved it by something like

    $(function(){
    $("input, input:file, select, checkbox").uniform();
});

Upvotes: 0

Views: 1602

Answers (2)

databyte
databyte

Reputation: 1268

I came across this question and found an updated answer.

From https://github.com/pixelmatrix/uniform

If you want to “un-uniform” something, simply call this function. It will remove the inline styles, extra dom elements, and event handlers, effectively restoring the element to it’s previous state.

$.uniform.restore([elem/selector string]);

// e.g.
$.uniform.restore("#something");

Upvotes: 1

Ish
Ish

Reputation: 29606

add this to page

<style>
input, select, button { // name the appropriate selectors
    border: auto;
    background: auto;
    color: auto;
    position: auto;
}
</style>

or

dynamically remove css from page

<link id="uniformCss" type="text/css" rel="stylesheet" href="stylesheets/uniform.default.css" /> 
<script>
$('#uniformCss').delete();
</script>

Upvotes: 0

Related Questions