Your question is a little bit confusing, once you say, you want to get the number only if the input is in hover, and then you say you want to write the '2' and then get the '2%' written. I don't understand.
However, you can do it this way, first create an HTML element,
<input type="text" value="" id="toWorkOn" />
Now handle the hover event using jQuery,
$('#toWorkOn').hover(function () {
$(this).change(function () {
});
});
I hope I have answered!