Bug Tracker

Modify

Ticket #6866 (closed feature: wontfix)

Opened 3 years ago

Last modified 15 months ago

Feature request for removeCSS

Reported by: lathan Owned by:
Priority: undecided Milestone: 1.4.3
Component: css Version: 1.4.2
Keywords: Cc:
Blocking: Blocked by:

Description

function to remove Css instead of having to do .css({'background': });

This function was written by user147767 ( http://stackoverflow.com/users/147767/user147767) on StackOverFlow

jQuery.fn.extend
({
    removeCss: function(cssName) {
        return this.each(function() {
            var curDom = $(this);
            jQuery.grep(cssName.split(","),
                    function(cssToBeRemoved) {
                        curDom.css(cssToBeRemoved, '');
                    });
            return curDom;
        });
    }
});

Change History

comment:1 Changed 3 years ago by snover

  • Priority set to undecided
  • Status changed from new to closed
  • Resolution set to wontfix

I don’t see any use case for this that is not already addressed in jQuery.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.