Closed (fixed)
Project:
Hierarchical Select
Version:
6.x-3.1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
26 May 2010 at 17:00 UTC
Updated:
1 Jun 2010 at 21:34 UTC
Hello, i have trabl. I use image with imagemap. and i add to imagemap onclick event. I want when clickin by area of image map, change selected element at HS drop-down box. When i use standart drop-down list, this code work:
<script type="text/javascript">
function ahah_change_index(sel_title) {
document.forms["views-exposed-form-nedvizh-view-panel-pane-1"].tid.selectedIndex=2;
}
</script>
and when i change drop-down box to HS my modifyned script does not work. the script:
<script type="text/javascript">
function ahah_change_index(sel_title) {
document.forms["views-exposed-form-nedvizh-view-panel-pane-1"].tid[hierarchical_select][selects][0].selectedIndex=2;
}
</script>
site is http://domitaly.ru/estate
idea is click on image and fill the region field with name of region.
Comments
Comment #1
fantom84 commentedfixed