View Single Post
  #1  
Old 04-07-2008, 06:56 PM
 
wayfarer wayfarer is offline
 

Advanced Member
  
Join Date: Apr 2003
Posts: 56
 

Default Add class to States select box on Contact page

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...
__________________
X Cart Pro
v. 4.1.9
Download Expander (from Altered Cart)
X-Magnifier
Dynamic Preview (from BCS Engineering)
Customer Rewards Points (BCSE), used as credit purchasing system
Reply With Quote