javascript ElementById clarification
My input tag looks like this
<input type="text" name="kkk" value="dis" disabled="disabled"></input>
This is my Javascript function
function get(){
alert(document.getElementById("kkk").value);
}
Though i dont have id for the above tag value gets printed when using
getElementById.can any one explain me the behaviour?
No comments:
Post a Comment