Jump to content

MBhalli

Members
  • Content Count

    7
  • Joined

  • Last visited


Reputation Activity

  1. Like
    MBhalli reacted to MayMusic in Changing Background color of a radio button   
    The ID of a radio button does not seem to be correct. Refer to
    It should be something like, InsertRecordMetalic_Injury0, InsertRecordMetalic_Injury1 ....
    Also you do not need == true
     
    <script type= "text/javascript"> function ValueChanged() { alert("Function Called"); if(document.getElementById("InsertRecordMetalic_Injury0").checked){ document.getElementById("InsertRecordPrior_Surgery0")0.style.background = "yellow"; } document.getElementById("InsertRecordPhone").focus(); } document.getElementById("InsertRecordPrior_Surgery0").onclick= ValueChanged; </script> But I am not sure how to change the background color
×
×
  • Create New...