I want to get number of one li that I hover on with jQuery. this is my code :
li
jQuery
You can use this:
var number = $(this).index() + 1;
Demo here
The .index() starts at 0 so I added +1 because you wanted to start counting from 1.