Validation 在动态生成的字段(客户端)上调用qForm验证

Validation 在动态生成的字段(客户端)上调用qForm验证,validation,Validation,我有一个表单,它有一个名为/id“notes”的输入字段: <input name="notes" type="text" id="notes" tabindex="5" value="" size="60" maxlength="300" class="fauxTextArea"> 我使用javascript将其替换为一个文本区域,结果如下: <textarea rows="5" cols="60" title="" tabindex="5" style="" id="no

我有一个表单,它有一个名为/id“notes”的输入字段:

<input name="notes" type="text" id="notes" tabindex="5" value="" size="60" maxlength="300" class="fauxTextArea">
我使用javascript将其替换为一个文本区域,结果如下:

<textarea rows="5" cols="60" title="" tabindex="5" style="" id="notes" name="notes" class=""></textarea>
然后我必须用qForms来验证它。在用文本区域替换字段方面没有太多选择,也没有使用qForms的选择


当我尝试提交表单时,除动态文本区域外,所有字段都会得到“验证”。

。。。解决办法非常简单。由于在$document.reday func中添加了动态字段,因此在其中初始化和调用验证非常有效

$(document).ready( function(){
    $(".fauxTextArea").jqFauxTextArea( );// the dynamic gets added here
    objForm = new qForm("whitePapers"); 
    // the rest of qForm relates stuff ...
}