W
weblinkunlimited
Hello,
For an automatic script I want to detect if an <span id='whatever'>yes
or no</span> is true or false.
I thought by doing it by this way:
if(typeof(document.getElementById('shoe1'))!='undefined') {
do this
}else{
do that
}
But on all document.getElementById('whatever') I get an 'object' as
result. By which way can I detect if it is TRUE or FALSE?
Thanks
For an automatic script I want to detect if an <span id='whatever'>yes
or no</span> is true or false.
I thought by doing it by this way:
if(typeof(document.getElementById('shoe1'))!='undefined') {
do this
}else{
do that
}
But on all document.getElementById('whatever') I get an 'object' as
result. By which way can I detect if it is TRUE or FALSE?
Thanks