Is it possible to add HTML in a CSS code? -


i know can add css in html code, want know is possible opposite? because there's want add class to, has custom css box.

edit:

<div class="thing2"></div> 

fiddle - wanna try here make ".thing2" appear putting codes on css box , not adding code above in html box. wanted see if it's possible.

you can use function (javascript) like

function myfunc() {     var = document.getelementbyid("elementid");     something.classname = something.classname + " newclass"; } 

then call it


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -