$("input").each(function(){
var idobj=$(this).attr("id")
var dd=$(this).val();
document.getElementById(idobj).setAttribute("value", dd);
});
$("textarea").each(function(){
var idobj=$(this).attr("id")
var dd=$(this).val();
$(this).html(dd);
//document.getElementById(idobj).innerHTML =dd;
});
//遍历单选
$('input:radio:checked').each(function () {
var idobj = $(this).attr("id");
document.getElementById(idobj).setAttribute("checked", "checked");
});
//遍历多选
$('input:checkbox:checked').each(function () {
var idobj = $(this).attr("id");
document.getElementById(idobj).setAttribute("checked", "checked");
});
$('select option:selected').each(function () {
var idobj = $(this).attr("id");
document.getElementById(idobj).setAttribute("selected", "selected");
var idobj=$(this).attr("id")
var dd=$(this).val();
document.getElementById(idobj).setAttribute("value", dd);
});
$("textarea").each(function(){
var idobj=$(this).attr("id")
var dd=$(this).val();
$(this).html(dd);
//document.getElementById(idobj).innerHTML =dd;
});
//遍历单选
$('input:radio:checked').each(function () {
var idobj = $(this).attr("id");
document.getElementById(idobj).setAttribute("checked", "checked");
});
//遍历多选
$('input:checkbox:checked').each(function () {
var idobj = $(this).attr("id");
document.getElementById(idobj).setAttribute("checked", "checked");
});
$('select option:selected').each(function () {
var idobj = $(this).attr("id");
document.getElementById(idobj).setAttribute("selected", "selected");
});
<fmt:formatDate value="${t.startTime}" type="date" dateStyle="long"/>
<fmt:formatDate value="${t.startTime}" type="time"/>