Hello...
Friends i am writing a java script code for a field...
I am using onkeydown event. when the user enter "." then what ever he writes or entered the field displayed the text i have already provided and holds the user data in a specific field....
Now the problem lies when the user uses the mouse and move the cursor(Keyboard) to the middle of the text entered... Now it is very hard for me to catch the current position of the keyboard cursor and append (or add) the text the customer entered to that position.....
Hope you understand what i mean.....(after pressing "." key) the user input is actually not displayed to the user, instead a common sentense already hardcodded is displayed....
How to find that cursor position in order to add upcomming text to that location...
By the way My Name is Adil Farid... I am new to Javascript Programming, i have only done form validation with javascript before.... i am from Peshawar (The Land of Pathans)
Friends i am writing a java script code for a field...
I am using onkeydown event. when the user enter "." then what ever he writes or entered the field displayed the text i have already provided and holds the user data in a specific field....
Now the problem lies when the user uses the mouse and move the cursor(Keyboard) to the middle of the text entered... Now it is very hard for me to catch the current position of the keyboard cursor and append (or add) the text the customer entered to that position.....
Hope you understand what i mean.....(after pressing "." key) the user input is actually not displayed to the user, instead a common sentense already hardcodded is displayed....
How to find that cursor position in order to add upcomming text to that location...
By the way My Name is Adil Farid... I am new to Javascript Programming, i have only done form validation with javascript before.... i am from Peshawar (The Land of Pathans)
