skip to Main Content

Css – How to add style to html element using javascript

I want to add style="font-weight: bold;" to the label tag of the html below: <label for="Results_CheckZ" style="font-weight: bold;">Sample content</label> <div id="Results_CheckZField" class="field-normal both checkZ"> <div class="field-control"> <div class="container-normal"> <label for="Results_CheckZ">Sample content</label> </div> </div> </div> I tried the following but it…

VIEW QUESTION
Back To Top
Search