mdss
♖♘♗♕♔♗♘♖
- Регистрация
- 20 Фев 2007
- Сообщения
- 1.152
- Реакции
- 710
попробуй так
ЗЫ jquery подключен?
HTML:
{literal}
<script type="text/javascript">
$(function() {
$('.option_place input[type=radio]').click(function () {
$('input:not(:checked)').parent().removeClass("option_place_selected");
$('input:checked').parent().addClass("option_place_selected");
});
$('.option_place input[type=radio]:checked').parent().addClass('option_place_selected');
})
</script>
{/literal}
<table>
{counter name='select_counter' start=0 skip=1 print=false assign='select_counter_var'}
{section name=i loop=$product_extra}
{if $product_extra[i].option_type != 0 }
{section name=k loop=$product_extra[i].option_show_times}
<tr>
<td>
{$product_extra[i].name|escape:'html'}{if $product_extra[i].option_show_times > 1 }({counter name=option_show_times}):{else}:{/if}
</td>
<td>
{counter name=select_counter assign=_cnt}
{section name=j loop=$product_extra[i].values_to_select}
<div class="option_place">
<input type="radio" name="option_{$_cnt}" id="option_{$product_extra[i].values_to_select[j].variantID}" class="product_option" value="option_{$product_extra[i].values_to_select[j].variantID}"{if $product_extra[i].values_to_select[j].variantID == $product_extra[i].variantID} checked="checked"{/if} /><label for="option_{$product_extra[i].values_to_select[j].variantID}">{$product_extra[i].values_to_select[j].option_value}</label>
</div>
{/section}
</td>
</tr>
{/section}
{/if}
{/section}
</table>
{else}
<table>
<tr>
<td>Color: </td>
<td>
<select name='option_select_1_71' onchange='GetCurrentCurrency_71()'>
<option value='0.00:8'>
white
</option>
<option value='0.00:5'>
yellow
</option>
<option value='0.00:6'>
green
</option>
</select>
</td>
</tr>
</table>
{/if}
ЗЫ jquery подключен?