jquery clone

잡다한 자료 2014. 7. 4. 13:13

    $frm_clone = $("#frm_program_1").clone(true);

    max_program_idx++;

    $frm_clone.attr("id", "frm_program_" + max_program_idx);

    $frm_clone.attr("name", "frm_program_" + max_program_idx);

    $frm_clone.find("#a_program_save").attr("href", "javascript:fProgramSave("+max_program_idx+")");

    $frm_clone.find("#tbody_program_lecture_A").html("");

    $frm_clone.find("#tbody_program_lecture_B").html("");

    $("#div_add_program").before($frm_clone);

반응형
Posted by 돌비
,