M
magix
I have an drop down list
let say:
<SELECT name="id" id="id" OnClick="Skip()">
<option value="0"></option>
<option value="1">Item 1</option>
<option value="2">Item 2</option>
<option value="3">Item 3</option>
<option value="4">Item 4</option>
</SELECT>
I have a skip button (with the OnClick javascript function, whenever I click
skip, the drop down list will select the next Item of the current one.
Example:
- the current selected item is Item 2, when click Skip, it will select Item
3
- the current selected item is Item 3, when click Skip, it will select Item
4
- the current selected item is Item 4, when click Skip, it will select the
first one, which is Value 0
like a circle...
how to do that in javascript ?
<Script language="javascript">
function skip()
{
}
</script>
thanks.
let say:
<SELECT name="id" id="id" OnClick="Skip()">
<option value="0"></option>
<option value="1">Item 1</option>
<option value="2">Item 2</option>
<option value="3">Item 3</option>
<option value="4">Item 4</option>
</SELECT>
I have a skip button (with the OnClick javascript function, whenever I click
skip, the drop down list will select the next Item of the current one.
Example:
- the current selected item is Item 2, when click Skip, it will select Item
3
- the current selected item is Item 3, when click Skip, it will select Item
4
- the current selected item is Item 4, when click Skip, it will select the
first one, which is Value 0
like a circle...
how to do that in javascript ?
<Script language="javascript">
function skip()
{
}
</script>
thanks.