我有這個問題.html()jQuery .html()不返回表單值
我有一個鏈接,這有助於問題的50%。
jquery html() does not return changed values
$("input").each(function(){
$(this).attr("value", $(this).val());
});
$("select").each(function(){
$(this).find('option[value='+$(this).val()+']').attr("selected", "selected");
});
它的工作,但只返回的輸入值。我怎麼做textareas,單選按鈕,複選框,我搜索了很多。找不到以上的鏈接。