deleting items in a list

wxdqz

New Member
I am building a piece of code so the user can add/delete/move up or move down elements in a list. I have the add working but I'm having some problems with the delete. When a item in the list is selected, the items seems to get deleted BUT there is still a "blank" space in the list, so it seems like the text got deleted but not the value !

Any suggestions ?

Code:

function Remove(dest) {

for ( i = 0; i < dest.length; i++ ) {
if ( dest.selected && dest != "" ) {
dest.value = "";
dest.text = "";
}
}
}
 
Back
Top