Im so freaken dumb its "this"not "$this".... lmao what a moron i am.... lol crazy crazy
But that didnt help much, it still is not moving the names.....
For some reason i remember something that DS told me one time. That i had to create the option so i managed to get the names moving back and forth but now i need to remove the names from the old box
here is how i did the moving part
var usr = text_clean(value);
var sid = text_clean(selectid);
var elmt = document.getElementById(sid);
var opt = document.createElement("option");
opt.text = usr;
opt.value = usr;
}//close function blockUser
now eventually how this will work, and i could be doing this all wrong. But
the side with the names will be a direct feed from the user names in the database, then when the user
selects a name and moves it to the blocklist side of the selects (the right side) then i will have to convert the names to the user id so i can add the block to the database table. That way that id is blocked by that user.
as far as the user side of the select (left side) i dont know yet how i am going to hande the fact that the user will still exist in that list even though they have been blocked. Maybe show them selected i dont know.
But i do know that when they are unblocked they need to be removed from the right side so that is what i am working on now.... trying to figure that out.
I dont want duplicates on either side. I dont know if this is the best way to process this or not. I thought it would be easy, user selects name from list and then convert that name to id and store it in the database table. If this is not the best way or i dont need to be using a select element please let me know.