Why is the button binding onclick event invalid?

  html5, question

Two buttons are added to the interface. When the left button “OK” is clicked, the onclick event can be triggered, while the right button “Edit” is not.
The style is as follows:

<form #checkcontacts-dialog>
 <div class="maskinglayer_div">
 <div class="add_contacts_frame">
 <div id="check_contacts_head">
 < div id = "checkcontacts _ label" > < label > view contacts </label > </div > < button id = "checkcontacts _ close" class = "register _ close _ orange" > </button >
 </div>
 <div id="check_contacts_footer">
 <table>
 < tr><td > name </TD > < TD > < input id = "check _ contacts _ footer _ name" type = "text" disabled/> </TD > </tr >
 < tr><td > mobile number </TD > < TD > < input id = "check _ contacts _ footer _ phone" type = "text" disabled/> </TD > </tr >
 < tr><td > landline </TD > < TD > < input id = "check _ contacts _ footer _ officephone" type = "text" disabled/> </TD > </tr >
 < tr><td>qq number </TD > < TD > < input id = "check _ contacts _ footer _ QQ" type = "text" disabled/> </TD > </tr >
 < tr><td > email </TD > < TD > < input id = "check _ contacts _ footer _ email" type = "text" disabled/> </TD > </tr >
 < tr><td > remarks </TD > < TD > < textarea id = "check _ beizhushuming" disabled > </textarea > </TD > </tr >
 </table>
 <button id="check_bt" class="show_add_bt"></button>
 <button id="edit_bt" class="edit_bt"></button>
 </div>
 </div>
 
 </div>
 </form>

The screenshot is as follows:
图片描述
The events of the two buttons are as follows: (Usetiscript)

$(#check_bt).onClick = function()
 {
 $(#checkcontacts-dialog).state.collapsed = true;
 }
 $(#edit_bt).on("click",function(evt)
 {
 $(#checkcontacts-dialog).state.collapsed = true;
 dialog {body:$(form#altercontacts-dialog)};
 })

Events are usedtiscriptWritten, grammar is correct.
After I exchange the id of the two buttons, the button on the left can also execute the event with ID edit_bt.

Please give us some advice.

This is because in CSS, the height and width of the picture button block the scope of the edit button.