我之前没有在这里发过一个问题,但这个网站非常有帮助,谢谢.当我单击与我想用来填充表单的字段相同的行中的"编辑"按钮时,我在使用动态表格数据填充jQuery对话框表单时遇到了一些麻烦.
我的HTML代码:对话框形式:
<div id="edit-dialog-form" class="edit-dialog-form" title="Edit Subscriber"><!--EDIT SUBSCRIBER - PULL FROM DB & UPDATE TO DB-->
<form name="editSubscriber"><!--edit existing subscriber details in database--->
<fieldset>
<label for="fname">First Name</label>
<input type="text" name="fname" id="fnameEdit" value="" class="text ui-widget-content ui-corner-all"/>
<label for="lname">Last Name</label>
<input type="text" name="lname" id="lnameEdit" value="" class="text ui-widget-content ui-corner-all" />
<label for="email">Email</label>
<input type="text" name="email" id="emailEdit" value="" class="text ui-widget-content ui-corner-all" />
<label for="status">Status</label>
<input type="text" name="status" id="statusEdit" value="" class="text ui-widget-content ui-corner-all" />
<!--<label for="password">Password</label>
<input type="text" name="password" id="password" value="" class="text ui-widget-content ui-corner-all" />--> …Run Code Online (Sandbox Code Playgroud)