Lab03_518H0545/js/exercise03.js
//make text underline and nothing else
make text underline and nothing else
make text underline and nothing else
function makeitUnderline(){
    let mess_id = document.getElementById("message_show");
    let underline = document.getElementById("underline");
    if(underline.checked){
        mess_id.style.textDecoration = "underline";
    }
    else{
        mess_id.style.textDecoration = "none";
    }
}
function makeitUnderline ( ) { let mess_id = document . getElementById ( "message_show" ) ; let underline = document . getElementById ( "underline" ) ; if ( underline . checked ) { mess_id . style . textDecoration = "underline" ; } else { mess_id . style . textDecoration = "none" ; } }
make text underline and nothing else
make text underline and nothing else