I am creating HTML select dropdown (font-size). When I am selecting the value from the dropdown for example h1.
Under the dropdown I have the text which i need to apply h1.
I was trying to creating css class for all the heading tag from H1 - h6 and in the onClick of every option apply css using add and remove.
<select>
<option>h1</option>
<option>h2</option>
<option>h3</option>
</select>
<div id="text">
Text
</div>
But I don't now how to do that. Link
Kindly help me how to