![](https://secure.gravatar.com/avatar/af1ff3c00b5cbb13b1d8c4f2ed857231?rating=PG&size=50&default=https%3A%2F%2Fcdn.desk.com%2Fassets%2Funknown_user_50-8ad5644bbe6b1bd7454f2ea465f782bd.png)
jwplayer("container").getPosition(); Returning Undefined
The following code is returning undefined how do I get the following code to work on my page?
var x = jwplayer("container").getPosition();
document.write(x);
My ultimate goal was to get the following to work
if (jwplayer("container").getPosition(); > 60) {
document.getElementById('delay').style.display = 'block';
}
But this is not working. I want the div to display after the video hits a certain time.