_p_
//button handler
"use strict";
var myApp = myApp || { }; // top-level namespace
var hB_1 = function() {
if (this.id === 'cb1'){
document.getElementById('place').innerHTML = "cb1";
}else
if (this.id === 'cb2'){
document.getElementById('place').innerHTML = "cb2";
}
if (this.id === 'cb3'){
document.getElementById('place').innerHTML = "cb3";
}
if (this.id === 'cb4'){
document.getElementById('place').innerHTML = "cb4";
}
if (this.id === 'cb5'){
document.getElementById('place').innerHTML = "cb5";
}
if (this.id === 'cb6'){
document.getElementById('place').innerHTML = "cb6";
}
}
$(function() { //start when DOM ready
let msg = "";
msg += "button handler <br/>";
$(document.getElementById('cb1')).on('click', hB_1);
$(document.getElementById('cb2')).on('click', hB_1);
$(document.getElementById('cb3')).on('click', hB_1);
$(document.getElementById('cb4')).on('click', hB_1);
$(document.getElementById('cb5')).on('click', hB_1);
$(document.getElementById('cb6')).on('click', hB_1);
document.getElementById('place').innerHTML = msg;
})