Template:CSS/UT-Tokyo/Counter/Contents

From 2014.igem.org

(Difference between revisions)
Line 552: Line 552:
var node = document.getElementById(str);
var node = document.getElementById(str);
alert(tmpStr);
alert(tmpStr);
-
if(node.getElementById(tmpStr) != null){
+
if(document.getElementById(str).getElementById(tmpStr) != null){
$("#contentsBody").mCustomScrollbar("scrollTo",target);
$("#contentsBody").mCustomScrollbar("scrollTo",target);
}else{
}else{

Revision as of 07:28, 12 October 2014