Hi there,
I have been making style changes to my contact form, just to add some background colour and font style to the form fields and select boxes, but changing the class for the States select box has me stumped. I modified the states.tpl file like this...
Code:
{* $Id: states.tpl,v 1.13.2.3 2007/09/03 06:15:27 max Exp $ *}
{if $states ne ""}
<select class="myselectboxclassinskin1css" name="{$name}" id="{$name|replace:"[":"_"|replace:"]":""}" {$style}>
{if $required eq "N"}
<option value="">[{$lng.lbl_please_select_one}]</option>
{/if}
<option value="{if $value_for_other ne "no"}Other{/if}"{if $default eq "Other"} selected="selected"{/if}>{$lng.lbl_other}:</option>
{section name=state_idx loop=$states}
{if $config.General.default_country eq $states[state_idx].country_code || $country_name eq '' || $default_fields.$country_name.avail eq 'Y'}
<option value="{$states[state_idx].state_code|escape}"{if $default eq $states[state_idx].state_code && (!$default_country || $default_country eq $states[state_idx].country_code)} selected="selected"{/if}>{$states[state_idx].country_code}: {$states[state_idx].state|amp}</option>
{/if}
{/section}
</select>
{else}
<input type="text"{if $name ne ''} id="{$name|replace:"[":"_"|replace:"]":""}"{/if} size="32" maxlength="65" name="{$name}" value="{$default|escape}" />
{/if}
...but the states drop down isn't obeying. Is there somewhere else I need to look to make the style change or have I missed something here? Any help would be much appreciated...