嗨,我需要创建一个表单并向其中添加元素。
$form = $("<form></form>"); $form.append("<input type=button value=button");
这似乎不行。
解决方法
第二行应写成:
$form.append('<input type="button" value="button">');