Hi,
I've a list of full names in a text field. I'd like it so that if a name was partially deleted it would be fully removed.
For example:
joe blogs, john smith, darren peterson,|
if the pipe represented my cursor and I pushed the backspace button once I would be left with
joe blogs, john smith,|
What would I need to do to get this affect?
I've a list of full names in a text field. I'd like it so that if a name was partially deleted it would be fully removed.
For example:
joe blogs, john smith, darren peterson,|
if the pipe represented my cursor and I pushed the backspace button once I would be left with
joe blogs, john smith,|
Code:
function detectBack (myField,myFieldValue) {
if(event.keyCode == 8) {
/*Something to remove from string??? */
myField.focus();
}
}
What would I need to do to get this affect?