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

fantom84’s picture

Status: Active » Closed (fixed)

fixed