This javascript code doesn't works in IE.This is in google maps [closed]
function changeval(){
var pr =document.getElementById('search').value;
//alert(pr);
if (pr==""){
document.getElementById('searchres').innerHTML="";
document.getElementById('pagination').innerHTML =" Search result will show here!<br/>";
}
}
This is code in googlemaps. The above code doesn't works in windows IE.
Use temporal variables and insert a debugger;
statement to see if your code can 'see' the objects you're trying to access, if exists.
精彩评论