iDenTiTy
Expert Member
Hi guys.
I am totally new to javascript. I have a big problem.
I have a dropdown list,
A textbox,
A button,
A checkbox.
I also have 1 array with 3 values across.
How do I search through the array and only return certain values when the checkbox is ticked?
When it is not ticked it must return all values.

One would type in 3 characters into the textbox, and tick the checkbox. The dropdownlist would therefore fill with the items in the array with 'x', that match the textbox.
If the checkbox is not ticked, all items matching the 3 characters typed in will fill the dropdownlist.
My array looks like this:
"Austria, Vienna", "AS", "x",
"South Africa, Johannesburg", "JHB"," ",
With x being the condition stated above (checkbox..)
I am completely new to Javascript, so any help would be appreciated.

I am totally new to javascript. I have a big problem.
I have a dropdown list,
A textbox,
A button,
A checkbox.
I also have 1 array with 3 values across.
How do I search through the array and only return certain values when the checkbox is ticked?
When it is not ticked it must return all values.
One would type in 3 characters into the textbox, and tick the checkbox. The dropdownlist would therefore fill with the items in the array with 'x', that match the textbox.
If the checkbox is not ticked, all items matching the 3 characters typed in will fill the dropdownlist.
My array looks like this:
"Austria, Vienna", "AS", "x",
"South Africa, Johannesburg", "JHB"," ",
With x being the condition stated above (checkbox..)
I am completely new to Javascript, so any help would be appreciated.