I am selecting a listbox item and then trying to check if the item is selected in my if statetement below by using "isItemSelected()". I get "NULL" as the value in the alert(). Is my syntax correct?
alert(listbox.isItemSelected());
alert(listbox.getSelectedItem());
if (listbox.isItemSelected() && listbox2.isItemSelected())
{
selected_items = listbox.getSelectedItem();
}