4 ms·
you can put anything inside class attribute <div id="data" class="{json: 'x'}"/> you can mix actual classes with JSON, just put JSON at the end: <div class="
by dotborg 14y ago
you can put anything inside class attribute
<div id="data" class="{json: 'x'}"/>
you can mix actual classes with JSON, just put JSON at the end:
<div class="header inline {json: 'x'}"/>
CSS selectors will work just fine
- flywheel 14y agoThis is the most idiotic thing I've ever seen. DO NOT mix your JSON with your CSS classes. It's just pure stupid. The class attribute on HTML elements is for CSS, not for anything else. To use it like this is an abomination. You should have your programming license revoked. (seriously)