Link to home
Start Free TrialLog in
Avatar of Whing Dela Cruz
Whing Dela CruzFlag for Anguilla

asked on

Writing comments on <p></P> or paragraph

Hi Experts, I am trying to write comments on paragraph by using function on a script like my code shown below. I put id on <p> to determine where the comments should be written. Is this correct approach? if yes HOW? Please help. I'm trying to run this code but it doesn't work. Thanks!

<p id="msg"></p>

<script>
  function iCheckUser()
   {
     document.getElementById("msg").value = "This is my comments.";
    }
</script>
ASKER CERTIFIED SOLUTION
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Whing Dela Cruz

ASKER

Thank you so much Ryan Chong, It's working...