Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的代码中有这一行来更新该文本区域中的先前数据(有先前的值)
$campo[2]='<textarea rows="3" name="desc_'.$exec->fields['recordId'].'_2" textarea_val="'.$exec->fields['description'].'" maxlength="500">';
但是当我在我的网页中使用那个框时,以前的值消失了......为什么?我该如何解决?
textarea 没有 value 属性:
<textarea row="3" name="textarea_name">value</textarea>
正确的语法是:
$campo[2]='<textarea rows="3" name="desc_'.$exec->fields['recordId'].'_2" maxlength="500">'.$exec->fields['description'].'</textarea>';