Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
EdmondsM #1
Remove a number from a list once selected
Hi All, I think I have read before that you can remove a number from a list of
numbers once it has been selected from say a dropdown box. So, if I have a
list of numbers from 1 to 10. When the user selects 5 from a list.....5 is no
longer available to be selected until the page has been submited or another
number has been selected besides 5.
Thanks in advance.
EdmondsM Guest
-
Remove multiple selected items listbox
How, using asp.net (vb.net), can I remove multiple selected items from a listbox. Everything I try does not seem to work. Thanks in advance. -
How do I use what has been selected from a dynamic list?
I have successfully built a dynamic list from a db table using PHP and MySQL. How do I determine which entries have been selected? I want to write... -
dropdown list can't selected.
I have a EditItemTemplate in a datagrid that contain a dropdown that bound to a dataset. In that grid I have a ItemCreated to handle the dropdow... -
Drop down list selected index
I am populating a drop down list with a privilege levels from a table called "Privilege" with the fields "PrivilegeID" and "PrivilegeName". In a... -
how to remove a programe from the add/remove list manually
i am using winXP home, i just remove a programe from the start menu(start>>all programes>>name of the programe>>uninstall),but the programe name is... -
A3gis #2
Re: Remove a number from a list once selected
best bet is to get the
document.forms[0].fieldname.options[document.forms[0].fieldname].selected
value, then assign it to a hidden field. then anytime someone changes the
listbox selection, have it read that value back into a variable, write the new
selected value into that field, then create a new list item using:
document.forms[0].fieldname[document.forms[0].fieldname.length+1].text=yourVal;
document.forms[0].fieldname[document.forms[0].fieldname.length+1].value=yourVal;
obviously i'm a lazy sod - but basically that's what you need, then since
you're using numbers, maybe check [url]www.javascriptsource.com[/url] for a script to
re-sort the list (as the above will add to the end) -> or you can just loop
through the objects until you find the gap the current insert value belongs in
and do it that way. Up to you!
Cheers,
Aegis
A3gis Guest



Reply With Quote

