It's Repository

blog.selpa.co.kr

포토로그



jQuery.each(".class") 예제 HTML/CSS/JS

function checkObjSubmit(fromForm){
var createHtml;
var objHtml;
//var act = formForm.action;
//alert(act);
$(".checkObj").each(function(index){
if($(this).is(":checked")){
var objName = $(this).val();
var objVal = $("#" + objName).val();
objHtml = "<input type='text' name='" + objName + "' value='" + objVal + "' />";
alert(objHtml);
createHtml += objHtml;
}
});
}

덧글

댓글 입력 영역