M
Mark
Hi - is it possible to pass a comma delimeted list to a javascript
function, which will then loop through the list, and check against a
listboxs items, and if the value in the list, corresponds to an item in
the listbox, the listbox item should be 'selected' - I'd like this to
happen for a multiple select list box.
Something along the lines of (sorry, I'm not knowledgable in JS just
yet, but need to solve the problem):
function selItems()
{
selItemsInList('1,4,4,7,8');
}
selItemsInList(str)
{
for each checkitem in str
{
for each item in selectlist
{
if item.value == checkitem.value
{
selectlist.item.checked;
}
}
}
Thanks for any help,
function, which will then loop through the list, and check against a
listboxs items, and if the value in the list, corresponds to an item in
the listbox, the listbox item should be 'selected' - I'd like this to
happen for a multiple select list box.
Something along the lines of (sorry, I'm not knowledgable in JS just
yet, but need to solve the problem):
function selItems()
{
selItemsInList('1,4,4,7,8');
}
selItemsInList(str)
{
for each checkitem in str
{
for each item in selectlist
{
if item.value == checkitem.value
{
selectlist.item.checked;
}
}
}
Thanks for any help,