How i can i delete a selected item out of a listbox using php,javascript?
https://stackoverflow.com/questions/2145836
Solution
<script type='text/javascript'>
function removeItem(selectbox)
{
var i;
for(i=selectbox.options.length-1;i>=0;i--)
{
if(selectbox.options[i].selected)
selectbox.remove(i);
}
}
</script>
<SELECT id="item" NAME="item" MULTIPLE size=6 width=10></SELECT>
<input type=button onClick="removeItem(item)"; value='Remove Selected Item'>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow