I want to change div content,
this is my code:
<script type="text/javascript">
function changeText(){
document.getElementById('df').value = 'changed';
}
</script>
<div id="df"></div>
<input type='button' onclick='changeText()' value='Change'/>
Nothing happens
You need
innerHTML, notvalueDEMO