-
removeClassPrefixCode 2019. 5. 24. 12:06
$.fn.removeClassPrefix = function(prefix){ var c, regex = new RegExp("(^|\\s)" + prefix + "\\S+", 'g'); return this.each(function(){ c = this.getAttribute('class'); this.setAttribute('class', c.replace(regex, '')); }); };
'Code' 카테고리의 다른 글
Text Stroke (0) 2019.05.28 Youtube (Vimeo) Popup Modal (0) 2019.05.27 CSS Grid Masonry Layout (0) 2019.05.24 Masonry Layout with Flexbox (Google Photo Layout) (0) 2019.05.24 Direction Aware Hover Effect (0) 2019.05.16