GizmoFlufflinski
MIS
hello guys i used to be a good amateure programmer i been off for a few years and have rekindled my intrest! I was never good lol just capable in the most inefficient sense. Any who to the point....
im trying to return style values of div for example an theoretical external style sheet....
#myDiv {
color:red;
display:block;
width:100px;
height:100px;
}
I am having trouble rertuning the values i either get undefined or blank.
var myTest=document.getElementById('myDiv').style.color;
this returns a blank value.
var myTest=document.getElementById('myDiv').style.color.value;
this returns "undefined".
thanx in advance guys!
im trying to return style values of div for example an theoretical external style sheet....
#myDiv {
color:red;
display:block;
width:100px;
height:100px;
}
I am having trouble rertuning the values i either get undefined or blank.
var myTest=document.getElementById('myDiv').style.color;
this returns a blank value.
var myTest=document.getElementById('myDiv').style.color.value;
this returns "undefined".
thanx in advance guys!