The value passed to the element selector function (usually $w), must be of type string

ok so now how do I keep the box open when I hover over it and then close it when the mouse is off the box