Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] Changing a Combobox content
- From: henrique.renno at gmail.com (Henrique Rennó)
- Subject: [Javascript] Changing a Combobox content
- Date: Fri Oct 27 14:57:46 2006
Hello!
I did a map over an image and every time I click on a mapped point it
changes the content of a combobox (select). It works fine on firefox but
internet explorer clears the combo's content every time a mapped point is
clicked. Is it a problem that can be solved?
This is what I did:
A function to change the combo's value:
function change(newvalue)
{
document.form_name.select_name.value = newvalue;
}
HTML code:
<form ... name='form_name' ...>
<select name='select_name'>
options
</select>
</form>
<img ... usemap='#map_name'>
<map name='map_name'>
<area ... onclick='change("newvalue")'>
</map>
--
Henrique
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.LaTech.edu/pipermail/javascript/attachments/20061027/d4d05abd/attachment.html
- Follow-Ups:
- [Javascript] Changing a Combobox content
- From: M
- [Javascript] Changing a Combobox content
- From: Nick Fitzsimons
- [Javascript] Changing a Combobox content
- Prev by Date: [Javascript] Problem w/Javascript, interpolation, functions, onclick
- Next by Date: [Javascript] Changing a Combobox content
- Previous by thread: [Javascript] Problem w/Javascript, interpolation, functions, onclick
- Next by thread: [Javascript] Changing a Combobox content
- Index(es):