我想用div标签封装两个元素,我想要这样
<div>
<span id="mailRecepientName2-label">
<label class="elementTitle required" for="mailRecepientName2">اسم المستفيد</label>
</span>
<span>
<input id="mailRecepientName2" type="text" value="" name="mailRecepientName2">
</span>
<span id="mailRecepientNote2-label">
<label class="required" for="mailRecepientNote2">البيـــــــان</label>
</span>
<span class="largeText">
<input id="mailRecepientNote2" type="text" value="" name="mailRecepientNote2">
</span>
<a class="ico_lable_remove" data-recepeintcount="2" name="deleteNewRecepient" href="javascript:void(0)"></a>
</div>
我这样弄
$mailRecepientName = new Zend_Form_Element_Text("mailRecepientName" . $id);
$mailRecepientName->setRequired(true)->setLabel('اسم المستفيد')->setDecorators(array(
'ViewHelper',
'Errors',
array(array('data' => 'HtmlTag'), array('tag' => 'span')),
array('Label', array('tag' => 'span'))
););
$mailRecepientNote = new Zend_Form_Element_Text("mailRecepientNote" . $id);
$mailRecepientNote->setRequired(true)->setLabel('البيـــــــان')->setDecorators(array(
'ViewHelper',
'Errors',
array(array('data' => 'HtmlTag'), array('tag' => 'span')),
array('Label', array('tag' => 'span'))
););
);
这两个元素都属于同一组字段集。如何使它们封装在 div 中?