Hi can someone show me how is possible to check if some class exists and if is true return a variable? (div, a, span, b, p, etc.) without div id and without jquery. I am new in javascript, thanks
My prototype example
var button = ".button {border: 1px solid #000, padding 1em}";
if ( button class exist in current html)
{ print var button }