I've read the jQuery tutorials, but I'm still having trouble understanding them. Is there anyone who could explain it to me in a clearer way, please? What I want to happen is that when I press one of my buttons, its value will appear in #valueformyButton, and when the modal pops up, I can type a text, and after I click OK, the text that I type will be added to #valueformycode.
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="utf-8">
</head>
<body>
<input id="btn1" type="button" value="1">
<input id="btn2" type="button" value="2">
<input id="btn3"type="button" value="3">
<input id="valueForMyModal" type="text">
<!--How to make this pop up modal form-->
<div id="myform">
<form>
<label id="valueForMyButton"></label>
<input id="name" type="text">
<input id="btnOK" type="button" value="Ok">
</form>
</div>
</body>
</html>