1. Engineering
  2. Computer Science
  3. given the following php code ltp stylequotcolor ff0000 fontweight boldquot...

Question: given the following php code ltp stylequotcolor ff0000 fontweight boldquot...

Question details

Given the following PHP code:

<p style="color: #FF0000; font-weight: bold;" id="termsText">

example text

<input type="checkbox" name="termsChkbx">

</p>

How would I change the colour and font weight of the <p> using only javascript, without making any changes to the php itself?

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution