You can remove specific css that is on the element like this:
$(this).css({'background-color' : '', 'font-weight' : ''});
Although I agree with karim that you should probably be using CSS classes.
More Related Contents:
- jQuery Adding new option to select element doesn't pick up the string [closed]
- Slide down button to show text HTML CSS
- get CSS rule’s percentage value in jQuery
- How to programmatically disable page scrolling with jQuery
- jQuery click events not working in iOS [duplicate]
- Bootstrap 3 Collapse show state with Chevron icon
- Add and remove a class on click using jQuery?
- css width: calc(100% -100px); alternative using jquery
- Number nested ordered lists in HTML
- Making radio buttons look like buttons instead
- Use jQuery/CSS to find the tallest of all elements [duplicate]
- How do I auto-hide placeholder text upon focus using css or jquery?
- Set width of a “Position: fixed” div relative to parent div
- How to make a hover effect for pseudo elements?
- How can I change the css class rules using jQuery?
- How do I get a fixed position div to scroll horizontally with the content? Using jQuery
- jQuery override default validation error message display (Css) Popup/Tooltip like
- What is the simplest jQuery way to have a ‘position:fixed’ (always at top) div?
- Can I fade in a background image (CSS: background-image) with jQuery?
- Dynamically add a class to Bootstrap’s ‘popover’ container
- Overriding !important with css or jquery
- Getting the actual, floating-point width of an element
- Bootstrap 4 with remote Modal
- Animate an element’s width from 0 to 100%, with it and it’s wrapper being only as wide as they need to be, without a pre-set width, in CSS3 or jQuery
- CSS for the “down arrow” on a element?
- How to create a diagonal line within a table cell?
- Show/ Hide Table Column with colspan using jQuery
- How add spaces between Slick carousel item
- Fading elements in and out without changing the layout of the page
- Custom CSS to allow chrome textarea resize smaller than initial state?