I'm having problem trying to convert this piece of code from jQuery into pure JavaScript.
The script is
if($('#item-1').find('#player').length == 1)
{
innerHTML = "You Won!!!";
} else {
innerHTML = "You Lose!!!";
}
Do I have to use getElementById?
if(document.getElementById("#item-1 #player").length == 1)