From: StackOverflow
document.getElementById("MyElement").className = "MyClass";
document.getElementById("MyElement").className += " MyClass";
From [My current HTML boilerplate](https://www.matuzo.at/blog/html-boilerplate/) | |
```HTML | |
<!DOCTYPE html> | |
<html lang="en" class="no-js"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width"> |
From: StackOverflow
document.getElementById("MyElement").className = "MyClass";
document.getElementById("MyElement").className += " MyClass";
<?php | |
/** | |
* From: http://www.geekpress.fr/wordpress/astuce/suppression-accents-media-1903/ | |
* | |
* How to remove accents from the url when upload a media | |
*/ | |
add_filter('sanitize_file_name', 'remove_accents' ); | |
?> |