supersav144
12-15-2010, 11:57 PM
I am currently trying to write a javascript function which checks whether the source of an image is one thing, if so do this, if not do something else.
Any help is much appreciated.
Below is the code I have tried...
if(document.getElementById("field").src == "images/tick.png"){
alert("this is the tick image");
}
Any help is much appreciated.
Below is the code I have tried...
if(document.getElementById("field").src == "images/tick.png"){
alert("this is the tick image");
}