Hi I have DPU installed and this great mod works fine but what I wanted to do was display some attributes as links (href) so when you click on one it changes the price and DPU, so I thought the easiest way would be to just change the attribute drop down and make it hidden all using this code:
<a href="javascript:void(0)" id="option1">£49.00</a>
<a href="javascript:void(0)" id="option2">£89,99</a>
<a href="javascript:void(0)" id="option3">£109.00</a>
<script>
$('#option1').click(function() {
$('select[name=id[2]] option[value=1]').attr('selected', 'selected');
});
$('#option2').click(function() {
$('select[name=id[2]] option[value=2]').attr('selected', 'selected');
});
$('#option3').click(function() {
$('select[name=id[2]] option[value=3]').attr('selected', 'selected');
});
</script>
id[2] is my attribute drop down box which changes fine but DPU does not update as I though it would any idea how I can get around this..
Thanks in advance.
Maxell
Bookmarks