var question = 'سؤال اليوم : -------------------بعض الرجال----------------- '; var element = document.getElementById('question_ejabat'); if (element != null && element.value != '') {element.innerHTML = question;}