I have a php generated HTML where I would like to add some css onmouseover functionality like below
<span id='".$id."' class='userInfo' onmouseover='hoverdiv(event,'popupUserInfoDiv')' onmouseout='hoverdiv(event,'popupUserInfoDiv')'>".$c["test"]."</span>
The javascript is not even added yet that if I mouseover I get the following error at the beginning of my DOM:
SyntaxError: Unexpected token '}'
EDIT: sorry if I was not clear enough but my code is PHP generated so I cannot use any double quote ? I tried and it breaks my page