//js code labelText = $("#productCode").text() //HTML code <label id="productCode" for="male">Male</label>
<script> document.getElementById('productCode').innerHTML = 'P0087755456'; </script>
Example 2: need to use .innerText
document.getElementById('*productCode').textContent //HTML Code <label id="*productCode" for="*tamilrokers4"> All hell. <span class = 'pstej'></span>
Track label Property
var x = document.getElementById("productCode").label; //OR Set document.getElementById("productCode").label = "P9825650008";
I would like to have feedback on my infinityknow.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.