Have you tried this jquery balloon tooltip plugin?
I plan to use this to inform the user that Numbers Only is allowed on a certain textbox.
js code
function isNotDigit(key_event) {
return (key_event.which != 8 && key_event.which != 0 && (key_event.which < 48 || key_event.which > 57));
}
function isDigit(key_event) { return (!(isNotDigit(key_event)))}
$(document).ready(function () {
$("#atkFld").keypress(function (e0) {
if (isNotDigit(e0)) {
$(this).balloon({contents: 'Numbers Only!'});
//$(this).next().html("Numbers Only").show().fadeOut("slow"); //Original code
return false;
}
});
});
html code
<input name="Attack" type="text" id="atkFld" placeholder="ATK" required />
It doesnt accept letters/strings/characters the balloon shows but it will appear on when you move the mouse out and the hover on the textbox again