Hi

I have used the plugin jqTransform for my search forms on my new website. I love this plugin and how it works however I have ran into a problem when trying to dynamically populate select fields with a populate function. The code works perfect if i don't have the jqTransform script therefore I think it is a conflict with that particular add on.

This line of code is what is causing the problem is line 56

form.make[e]=new Option(Make_ref[1],Make_ref[0]);

Does anyone know from past experience how to work around conflicts with this script? The whole program is so complex it is hard for me to hone in on the code and provide an example.

Any help would be much appreciated
Rachel

HTML Code:
<dl>
<dd class="rowElem"><input type="radio" name="typ" value="DL" onclick="PopulateMake(veh_srch)" /> <span>Dealers</span></dd>
<dd class="rowElem"><input type="radio" name="typ" value="NC" onclick="PopulateMake(veh_srch)" /> <span>New Cars</span></dd>
<dd class="rowElem"><input type="radio" name="typ" value="UC" onclick="PopulateMake(veh_srch)" /> <span>Used Cars</span></dd>
  
<br class="clearfloat"/>
 
 
<dd class="rowElem">
  <select id="example" name="make" onchange="PopulateModel(veh_srch)" >
    <option value="">Make</option>
  </select>
</dd>
Code JavaScript:
function PopulateMake(form)
{
 
 
var t=get_typ(form);
 
alert(t);
 
var NC_Make_List='|13:Chevrolet|15:Citroen|27:Fiat|28:Ford|30:Honda|32:Hyundai|51:Mazda|62:Peugeot|67:Renault|73:SEAT|84:Vauxhall';
var UC_Make_List='|3:Alfa Romeo|6:Audi|9:BMW|13:Chevrolet|14:Chrysler|15:Citroen|19:Daewoo|20:Daihatsu|23:Dodge|27:Fiat|28:Ford|30:Honda|32:Hyundai|35:Jaguar|36:Jeep|38:Kia|42:Land Rover|43:Lexus|51:Mazda|52:Mercedes-Benz|55:Mini|56:Mitsubishi|58:Nissan|62:Peugeot|65:Proton|67:Renault|69:Rover|70:Saab|73:SEAT|74:Skoda|75:Smart|76:Ssangyong|77:Subaru|78:Suzuki|82:Toyota|84:Vauxhall|85:Volkswagen|86:Volvo';
var NL_Make_List='|96:Citroen|100:Fiat|101:Ford|103:Hyundai|106:IVECO|121:Peugeot|125:Renault|137:Vauxhall';
var UL_Make_List='|96:Citroen|100:Fiat|101:Ford|106:IVECO|114:Mercedes-Benz|116:Mitsubishi|119:Nissan|121:Peugeot|125:Renault|137:Vauxhall';
var NB_Make_List='|199:Honda';
var UB_Make_List='|158:Beta|162:BMW|183:Ducati|199:Honda|213:Kawasaki|218:Ktm|288:Suzuki|298:Triumph|309:Yamaha';
var NH_Make_List='';
var UH_Make_List='|352:IVECO';
var NM_Make_List='';
var JB_Make_List='|1:South West|2:South East|3:North East|4:Midlands|5:Yorkshire|6:Lincolnshire|7:North West|8:Derbyshire|9:Oxfordshire|10:Gloucestershire|11:Scotland';
var UCO_Make_List='|13:Chevrolet|96:Citroen|409:Electricycle|100:Fiat|101:Ford|30:Honda|32:Hyundai|106:IVECO|51:Mazda|89:Motor Nation|62:Peugeot|67:Renault|73:SEAT|141:Used Car Sites|137:Vauxhall|138:Volkswagen';
var DL_Make_List='|13:Chevrolet|15:Citroen|27:Fiat|28:Ford|199:Honda|32:Hyundai|106:IVECO|51:Mazda|89:Motor Nation|62:Peugeot|67:Renault|73:SEAT|84:Vauxhall';
var LEB_Make_List='|15:Citroen|96:Citroen LCV|101:Ford LCV|30:Honda|106:IVECO LCV|51:Mazda|62:Peugeot|121:Peugeot LCV|67:Renault|125:Renault LCV|84:Vauxhall';
var LEP_Make_List='|28:Ford';
marray=eval(t + "_Make_List");
var Make = new Array();
var MakeRestrict;
var e = 0;
MakeRestrict=form.make_restrict.value;
Make=marray.split("|");
form.make.length=0;
form.make[0]=new Option("Make","",false,false);
for (c=1;c<Make.length;c++)
    {
    Make_ref=Make[c].split(":");
 
    if ((!MakeRestrict=="" && MakeRestrict.search(',' + Make_ref[0] + ',')!= -1) || MakeRestrict=="" || t=='UB' || t=='UC' || t=='UL' || t=='UH')
       {
       e++;
alert(Make_ref[1]);
 
       form.make[e]=new Option(Make_ref[1],Make_ref[0]);
 
       if (Make_ref[0]==form.prev_make.value)
          {
          form.make[e].selected=true
          }