dimanche 23 avril 2017

How Do I return this as string not html element

How Do I return this as string not html element

<script>

function myFunction() {
var str = "<input type='text'/>";     var res = str.toString();
document.getElementById("demo").innerHTML = res;
}
</script>

This is the return result




Aucun commentaire:

Enregistrer un commentaire