Derek
Derek

Reputation: 4931

Exclude jquery ui style from certain buttons/inputs

I need to exclude certain elements from being styled by jquery ui. Is it possible to exclude a certain section of code or disable jquery ui for a specific input button or anything similar?

Upvotes: 0

Views: 1179

Answers (3)

sje397
sje397

Reputation: 41812

I don't think JQuery UI does much unless you actually add their css classes to elements yourself (I could be wrong though). If you're using plugins that use JQuery UI styling and want to undo it, I don't think there's anything you can do short of writing a javascript function to traverse a section of DOM and strip all the jquery UI classes.

Upvotes: 2

Sachin R
Sachin R

Reputation: 11876

$("input[type=button]").hide();

Use these

http://api.jquery.com/visible-selector/

Upvotes: 0

Stephen
Stephen

Reputation: 18964

This should be easily accomplished by clever CSS selectors. Instead of calling jquery-ui on all elements, or on all of one class, use different classes on the particular ones you want to behave differently.

Upvotes: 0

Related Questions