Populating checkbox

Discussion in 'PHP' started by majidk, Aug 12, 2009.

  1. #1
    I wondering if anyone knew how to populate checkboxes. I have a table consisting of text boxes which populates excellently. Towards the bottom of the table i have a check box consisting of yes and no. so when the results display, it should automatically populate to display either yes or no. Please Help
     
    majidk, Aug 12, 2009 IP
  2. alons

    alons Peon

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    the html code is <input type="checkbox" checked="checked" name="whatever" />
    For JS use getElecmentById('idhere').checked = true;
     
    alons, Aug 13, 2009 IP