Trigger click not woking in safari
this is my jquery script
<script type="text/javascript">
var spConfig = new Product.Config(<?php echo $this->getJsonConfig() ?>);
jQuery("#amconf-images-150").css("display","");
function select_dd_watts(div_id)
{
var volage_btn = div_id;
div_id = div_id.split("-");
var attr_id = div_id[1];
jQuery(".watts-text").css("color","#fff");
jQuery(".watt-class").css("color","#fff");
jQuery(".watts-div").css("background","#000");
jQuery("#"+volage_btn).css("background","#602021");
jQuery("#amconf-image-"+attr_id).trigger("click");
}
</script>
This is my code of phtml file of magento
<div class="watts-div" onclick="select_dd_watts(this.id)" id="watt-<?php echo $labels['id'];?>"><span class="watts-text"><?php echo $labels['label'];?></span><span class="watt-class">WATT</span></div>
In the above script trigger click function does not works in safari but it works well in all other browsers.
The line which dosent work is highlighted.
Can anyone help why is it happening and any solution for the same will be highly appreciated
Thanks!!
you can find the url below
http://acupwr.iksuladev.com/step-down-transformers.html
Open the above page in safari and mozilla and click on 100 watt or any other value you can see the amount beside it also changes in all browsers but the same dosent work in safari