<div class="djform_field">
<?php
$title_char_limit = $par->get('title_char_limit','0');
if($title_char_limit>0){
$input_title_limit =' onkeyup="titleLimit('.$title_char_limit.');" ';
}else{
$input_title_limit ='';
} ?>
<input name="adres" type="text" spellcheck="true" class="pole" id="adres" maxlength="250" value="" />
</div>
---------- инпут куда должно попоадать значение селект----------
<div id="after_cat_0"></div>
<script type="text/javascript">
var cats=new Array();
<?php
$cat_sel = '<select style="width:210px" class="forname" name="cats[]" id="cat_0" onchange="new_cat(0,this.value);getFields(this.value);">';
$parent_id=0;
$cat_req = array();
foreach($this->cats as $l){
if($l->ads_disabled){
$cat_req[$l->id]=1;
}
}
foreach($this->cats as $l){
if($parent_id!=$l->parent_id){
$cat_sel .= '</select>';
echo "cats[$parent_id]='$cat_sel<div id=\"after_cat_$parent_id\"></div>';";
$parent_id=$l->parent_id;
$cl_select = '';
if($l->ads_disabled || isset($cat_req[$parent_id])){
$cl_select = ' class="forname" ';
}
$cat_sel = '<div style="clear:both"></div><select '.$cl_select.' style="width:210px" name="cats[]" id="cat_'.$l->parent_id.'" onchange="new_cat('.$parent_id.',this.value);getFields(this.value);">';
$cat_sel .= '<option value="p'.$parent_id.'">'.JTEXT::_('COM_DJCLASSIFIEDS_CATEGORY_SELECTOR_EMPTY_VALUE').'</option>';
}
if($l->price>0){
$l->price = $l->price/100;
$l->name .= ' ('.DJClassifiedsTheme::priceFormat($l->price,$unit_price);
if($l->points>0 && $points_a){
$l->name .= ' - '.$l->points.JTEXT::_('COM_DJCLASSIFIEDS_POINTS_SHORT');
}
$l->name .= ')';
}
$cat_sel .= '<option value="'.$l->id.'">'.str_ireplace("'", "'", $l->name).'</option>';
}
$cat_sel .= '</select>';
echo "cats[$parent_id]='$cat_sel<div id=\"after_cat_$parent_id\"></div>';";
?>
-----------------это я так понимаю и есть селект который динамический