I have two variables :
var Save = document.querySelector('[id$="btnSave"]');
var Cancel = document.querySelector('[id$="btnCancel"]');
How can I attach the same click event to the both ?
$('????').click(function () {
sessionStorage.clear();
});
$('[id$="btnSave"]')see this jsbin.com/pipegawulo/edit?html,js,output