Here you are depending on jQuery. you could just use the native document.getElementById() to pass a plain DOM element.