I'm trying to figure out how to make tooltip appear next to textarea when user starts typing into it, i presume i have to use onChange to catch it, but how to make the tooltip appear where i want it to?
All the tooltip examples and tutorials out there make the tip be attached to your mouse...
This seems like a hairy problem so i've been thinking alternative solutions..
Would it be possible to feed in "right arrow" pressed signal to the web page from the javascript? So that when i press 4, the script notices this as it's getting onKeyUp in anyway, then at the end of the script after...
It is more elegantly packaged and works like my script.
Problem is that when i press key and enter 4th value (4), string '1234' is sent to addComma() and when it returns string '1,234' the string is suddenly 5 characters long.
The blinking cursor doesn't realize this and the cursor stays...
Ok, this is the code currently:
calling part from html:
onKeyUp="return validate('source-id')
// JavaScript Document
function insertCommas(v)
{
var sVar = v.toString();
var sReturn = '';
var iCommas;
var iCommaAfter;
var j = 0;
if(sVar.length <= 3) { return sVar; }
iCommas =...
The goal of this script is to insert thousand separators into number string as the user types the number to avoid confusion when numbers get longer, like up to billion. I have achieved this on internet explorer but i'm strugling to get it crossplatform compatible.
123456789 as example string...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.