刪除元素我有HTML這樣的:如何使用特定的ID
<html>
<input type='button' name='button1' id='button1'>
<input type='button' name='button2' id='button2'>
</html>
我想這樣做,當用戶點擊BUTTON2,應該刪除Button1的元素,並顯示在其地點的消息。它會看起來像這樣button2點擊事件。
<html>
Button1 Removed
<input type='button' name='button2' id='button2'>
</html>