If I type in... j then hit backspace, my event will fire.
I want to type in... j then hit backspace, don't fire the event, hit backspace again, fire the event
function backspace_delete(e)
{
if (!e)
{
// IE reports window.event instead of the argument
e = window.event;
}
var keycode;
if (document.all)
{
// IE
keycode = e.keyCode;
}
else
{
// Not IE
keycode = e.which;
}
if (keycode == 8 && with_field.value == '')
{
if (document.all)
{
//IE
removeElementById(with_input.lastChild.id);
}
else
{
//Non IE
removeElementById(with_input.lastChild.id);
}
}
}
