0
我已经添加HTML元素:将在运行时组合框中使用追加 代码在运行时JQUERY
function addFormField() {
$("#inputss").append("<strong>asif</strong>"); }
,但我怎么可以添加在运行时,看起来像这样一个选择的元素..
PHP代码:
<select name="pre_req" id="pre_req" class="inputs"
value=<? if($this->uri->segment(2)=='update') echo $results['pre_req']?>>
<option value='None'>None</option>
<? foreach($combo1 as $row)
echo "<option value=$row[sub_name]>$row[sub_name</option>";
?>
</select>
thnks..i这样做.. $选择= “
<选择name = pre_req ID = pre_req类=输入><选项值=无>无”; \t \t \t \t \t \t的foreach($ COMBO1为$行) \t \t \t \t \t \t \t $选择= “<选项值= $行[sub_name]> $行[sub_name]”。 \t \t \t \t \t \t $选择= “
”。 然后 onClick =“addFormField('=$select?>') 其工作现在 – mysterious 2010-07-21 06:41:52