How to make this jquery code work on 3.2.1 jquery : First of all i'll told you i 'm very little knowledge  about java script i can under stand an function (can download free resource and applied or modified to my work)



so i used this function to make my one page website by set all div to 
display-non and when click on each button will set that div display-block everything work fine until i have add music player that the creator use higher jquery library (i used to 1.5.2 > 3.2.1) every thing work great like before but wheni click on button to play the music i can't get back or go to other menu inspector said u
ncaught TypeError: document.getElementById is not a function

but if i won't click on play button everything is mormal :(

	function openPage(pageName) {
	var i;
	var x = document.getElementsByClassName("page");
	for (i = 0; i < x.length; i++) {
	x[i].style.display = "none";  
	}
	document.getElementById(pageName).style.display = "block";  
}