tags:

views:

38

answers:

4

I get the effect that I want using firebug; I disable this:

.ui-state-highlight a, .ui-widget-content .ui-state-highlight a {
color:#030303;
}

(actually I only need to disable .ui-state-highlight a {color:#030303}) how could I do this using jquery ?

+1  A: 
.ui-state-highlight a {color:auto !important;}

sorry, couldn't test it

revaxarts
doesn't work, and 'auto' doesn't exist for color
Omu
+2  A: 

You can override styles using JQuery css method, but probably the cleanest solution is to host your own version of jquery-ui stylesheet locally and change it whenever necessary.

Or, as revaxarts noted, you can override value with !important directive.

Nikita Rybak
I didn't explained everything in details, but I solved my problem by doing: $('.ui-state-highlight a').css('color', $('.ui-state-default').css('color'));
Omu
+1  A: 

Well, I'm not sure if I understand your need correctly, but first you need to select your element, I'll assume here you want to apply this to every <a> in your code. To remove a class from a set of elements you can use .removeClass()

$('a').removeClass('ui-state-highlight');

If it's just the color that needs removing you could remove that particular css in place.

$('a').css('color', '#000');
thomasmalt
+1  A: 

try this,

$('.ui-state-highlight').removeClass('.ui-state-highlight');
Reigel