Hello world!
I have an input type=text with value={date}
User scrolls his mouse wheel on it.
I need to see what is character number in the text field (in Firefox it's evt.rangeOffset) .
How to get that in Chrome?
Below is the code.
<script>
attach = function(){
dateField= document.getElementById('a');
dateField.onmousewheel=handleEvent;
}
handleEvent = function(evt){
//???????????????????????
//how to get character number on text field?
}
</script>
<body onload="attach()">
<input type=text value="01-10-2010" name=a id=a >
</body>
Thanks in advance.


Reply With Quote
Bookmarks