so, I have a div with stuff like <h2>s and <img>s in them, and I want it so that if a user doubleclicks on one of them (for example they double click on anything inside the <h2></h2> tags it will turn it into a textbox with <h2>title</h2> inside it…
I just can’t figure out how to send to the javascript function what was double clicked on?
Here is a very bare example for single click:
test live: http://jsfiddle.net/MsTzY/