title: Javascript onclick change variable value
body: <p>I am new to JavaScript and I need some help. I am making a website and I have several images of team members that if clicked (so I'm guessing the <code>onclick </code>event) will change the variable values corresponding to that team member. For instance, if I click on a picture of Bill Gates, in a separate div, I need to have a variable (let's say <code>Name</code>) change value to Bill Gates. Then, if I click on an image of Steve Jobs, the variables containing Bill Gates' data will get overwritten with the data of Steve Jobs. How do I do this?</p>