Code:
function delItem ()
{
var contSearch = 1;
var selIndex;
// check to see if there is at least one item selected
if (document.forms.frmPlant.plantList.selectedIndex == -1) {
alert("No entries selected for deletion");
return true;
}
// loop through all selected items and delete them
while (contSearch > 0) {
selIndex = document.forms.frmPlant.plantList.selectedIndex;
if (selIndex >= 0) {
document.forms.frmPlant.plantList.options[selIndex] = null;
}
else
contSearch = 0;
}
return true;
}
I am having problems with deleting the whole row of the listbox. It seems to delete the current text but not the item itself (when you add a new item, there is a gap where the one you deleted is.
The page is located at
www.killuke.com.au/?page=order_form
other feedback on the order form would be good also (besides the fact of using db for listbox items

).
I was wondering if there is a way to hide the send order button (and or the enter key) until all criteria is met so they dont send a blank order. (order is sent via php mail function)
if you need any mre code just ask.
thanks