S
student4lifer
Hello,
I want to display a list box that contains the elements from an array
(queried from database). There is a button next to the list box to
delete item(s) in the list box (and the same item(s) would be deleted
from database as well). It seems to me the functions for populating
and deleting items in the list box can be accomplished with
javascript. Could someone show me the best way to do this (not just
populating the list box but also for deleting the items afterwards)?
For starter, is dynamically 'echoing' the elements into a javascript
array (inside the <script language=javascript> tag) the right way to
populate the list box? TIA.
I want to display a list box that contains the elements from an array
(queried from database). There is a button next to the list box to
delete item(s) in the list box (and the same item(s) would be deleted
from database as well). It seems to me the functions for populating
and deleting items in the list box can be accomplished with
javascript. Could someone show me the best way to do this (not just
populating the list box but also for deleting the items afterwards)?
For starter, is dynamically 'echoing' the elements into a javascript
array (inside the <script language=javascript> tag) the right way to
populate the list box? TIA.