Template:CSS/UT-Tokyo/Counter/Contents
From 2014.igem.org
(Difference between revisions)
Pineappler (Talk | contribs) |
Pineappler (Talk | contribs) |
||
Line 552: | Line 552: | ||
var node = document.getElementById(str); | var node = document.getElementById(str); | ||
alert(tmpStr); | alert(tmpStr); | ||
- | if( | + | if(document.getElementById(str).getElementById(tmpStr) != null){ |
$("#contentsBody").mCustomScrollbar("scrollTo",target); | $("#contentsBody").mCustomScrollbar("scrollTo",target); | ||
}else{ | }else{ |