[removed]

function cssChange(formData){

console.log(formData);

}

[removed]



<form name='formName'>

<button name = '1'>

<button name = '2'>

<button name = '3'>


<input type=button onClick="cssChange()">

</form>


이렇게 찍으면 console.log에서 form html구조가 찍히잖아..브라우저에서...


저기서 button 1,2,3 을 어떻게 찾아냄 ㅜㅜ?


getElementsByName을 쓸 수 있는것도 아니고..