I want to get value of value attribute using id attribute of html tag.
<p id='abc' value='xyz'>123456</p>
and my javascript is
var a=document.getElementById(abc).innerHTML;
alert(a);
this gives me alert "123456" but I want alert function should display me "xyz". How can I do these. I also tried getElementById(abc).value this returns nothing.
OR is there ant way to make tag which is doesn't display on browser. I don't want to display 123456 on browser.