C chained New member Apr 7, 2010 #1 I have an if-else statement and for each condition an HTML tag should be implemented like this one: if (condition) { <h1>message</h1> } else { <h3>message</h1> } How can javascript read HTML tags?
I have an if-else statement and for each condition an HTML tag should be implemented like this one: if (condition) { <h1>message</h1> } else { <h3>message</h1> } How can javascript read HTML tags?