How to make Quaternion.LookRotation on Y axis only?

public Transform skeleton;

moveDirection = new Vector3(Input.GetAxis("Horizontal"), 0, Input.GetAxis("Vertical"));
				moveDirection = transform.TransformDirection(moveDirection);
				moveDirection *= speed;

if (if statement) 
skeleton.transform.rotation = Quaternion.LookRotation(moveDirection);

Im rotating character for him to walk into the moveDirection, but when i do character rotates a little forward when i move. I only want him to rotate to left and right, any idea how do i change the code?

Had to add
moveDirection.y = 0;
Before
skeleton.transform.rotation = Quaternion.LookRotation(moveDirection);