PDA

View Full Version : need help with relation 2 listbox



pixeldude
April 4th, 2005, 01:12 AM
Ello..how to feed dt from dtbase into listbox...what I mean is ..I have 2 listbox one is for state and another is town..so when i click certain state it'll feed town listbox with town item..hope u guys got it...so really need help with it..?

teiz77
April 4th, 2005, 04:14 AM
you must do it with javascript... there are plenty tutorials and examples for that... like here http://www.quirksmode.org/js/options.html

pixeldude
April 4th, 2005, 05:56 AM
you must do it with javascript... there are plenty tutorials and examples for that... like here http://www.quirksmode.org/js/options.html
thnks for ur reply teiz77 ..but is my bad actually..just mistyping ..actually I'm looking for comboBox not listbox..my bad actually...sorry for that..can it be apply to comboBox also..?

teiz77
April 4th, 2005, 07:10 AM
yeah... just remove the size=4 attribute from the select tag and it's a combobox

pixeldude
April 4th, 2005, 09:40 PM
thnks for the reply teiz77 ...