ciao hai provato cosi?

var objid = document.getElementById('ciao');
objid.id="addio";