- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
// Реализованно не верно, надо узнать как разобраться.
$.prototype.deleteClass = function(name) // Удаляет один из классов элемента
{ // Пример:$('closeSpan').deleteClass('dialogTitleCloseSpanOver');
this.setClass( (this.className()).replace(" "+name+" ", ' ') );
this.setClass( (this.className()).replace(""+name+" ", ' ') );
this.setClass( (this.className()).replace(" "+name+"", ' ') );
return this;
}
Годный велосипед.
Ваш К.О.
http://javascript.ru/blog/mycoding/Pishem-svoj-jquery