10 examples of 'jquery remove css' in JavaScript

Every line of 'jquery remove css' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
this disclaimer
29function removeCss(document: Document, ref: number) {
30 if (injectedCache[ref] == null) {
31 return;
32 }
33 const head = getHead(document);
34 head.removeChild(injectedCache[ref]);
35 delete injectedCache[ref];
36}
Important

Use secure code every time

Secure your code as it's written. Use Snyk Code to scan source code in minutes – no build needed – and fix issues immediately. Enable Snyk Code

105static ClearAbsoluteCSS($element){
106 $element.css('top', '');
107 $element.css('left', '');
108 $element.css('width', '');
109 $element.css('height', '');
110}
109function remove(elem, styleName) {
110 elem.style.removeProperty(styleName);
111 if (Strings.isEmpty(elem.getAttribute('style'))) {
112 elem.removeAttribute('style');
113 }
114}
73function parseCss(css, cls){
74 var classValue = '';
75 var styleValue = '';
76 if (typeof css == 'string'){
77 styleValue = css;
78 } else if (css){
79 classValue = css['class'] || '';
80 styleValue = css['style'] || '';
81 }
82 return 'class="' + cls + (classValue ? ' '+classValue : '') + '" ' +
83 'style="' + styleValue + '"';
84}
921function remove_class(css_class, element) {
922 check_params(css_class, element, "remove_class");
923 var regexp = new RegExp("(\\s" + css_class + ")|(" + css_class + "\\s)|" + css_class, "i");
924 element.className = pklib.string.trim(element.className.replace(regexp, ""));
925}
36css(style: string, value: string): void {
37 if (value !== '') {
38 this.renderer.setStyle(this.elemRef.nativeElement, style, value);
39 } else {
40 this.renderer.removeStyle(this.elemRef.nativeElement, style);
41 }
42}
91function removeAllElementClass(className){
92 $("."+className, window.parent.document).removeClass(className);
93}
108function removeClassName( elem, name ) {
109 elem.className = elem.className.replace(name, "");
110}
394function applyCss(element, prop, value) {
395 prop = getStyleProp(prop);
396 element.style[prop] = value;
397}
39function css(el, prop) {
40 for (var n in prop) el.style[vendor(el, n) || n] = prop[n];
41 return el;
42}

Related snippets