a jquery plugin is applying an inline style (display:block), I'm feeling lazy and i want to override it with display:none,
what's the best (lazy) way?
a jquery plugin is applying an inline style (display:block), I'm feeling lazy and i want to override it with display:none,
what's the best (lazy) way?
.removeAttr("style") to just get rid of the whole style tag... .attr("style") to test the value... .attr("style",newValue) to set it to something else
You can set the style using jQuery's css method:
$('something:visible').css('display', 'none');
The Lazy way (which will cause future designers to curse your name and murder you in your sleep):
#myelement
{
display: none !important;
}
Disclaimer: I do not advocate this approach, but it certainly is the lazy way.
Change the plugin to no longer apply the style. That would be much better than removing the style there-after.