jquery-form 是一个用来即时生成表单的jQuery插件,使用方法:
$("#form1").form({ legend: "Quiz #4", params: { "Title": "What's the answer ?", "your_answer": { label: "Your Answer", value: "42" } } }) .find(":submit").val("Save").end() .submit(function() { $("#message").html("You just submit that form"); setTimeout(function() { $("#message").empty(); }, 5000); return false; });