I want to change the color of li which contains anchor when the mouse go over it, I make like this
You don't need any JavaScript at all. You can use CSS:
li.sonItem:hover { background-color: black; }