Posts

Showing posts with the label jquery

json array 객체 생성

Image
var user_id = '<%=id%>'; var jsonArray = new Array(); var jsonObjMaster = new Object(); //신청 정보 마스터 jsonObjMaster.mcRecptnDe = today(); jsonObjMaster.buldMgtNo1 = $('#buldMgtNo1').val(); jsonObjMaster.buldMgtNo2 = $('#buldMgtNo2').val(); jsonObjMaster.noticeManNm = $('#partcpntNm').val(); jsonObjMaster.noticeManTelNo = $('#telno').val(); jsonObjMaster.noticeDe =  today(); jsonObjMaster.kesiInsttCD = $('#inspctInsttCd').val(); jsonObjMaster.noticeManSMSYN = $('#noticeManSMSYN').val(); jsonObjMaster.recptnInsttCD = $('#inspctInsttCd').val(); jsonObjMaster.mcNoticeNo = '12'; jsonObjMaster.registUSID = user_id; jsonArray.push(jsonObjMaster); //신청정보 디테일 $('#elvtrMgtNo:checked').each(function(i) { var arrTmp = $(this).val().split('-'); var jsonObjSub = new Object(); jsonObjSub.elvtrMgtNo1 = arrTmp[0]; jsonObjSub.elvtrMgt...

jquery on off img

Image
<script type="text/javaScript" language="javascript" defer="defer"> function setimage(code,name,num,cycle,selChkYm){ for(var i=1;i<=5;i++){ //해당 이미지 off로 변경 if(i!=num){ $('#'+code+"_"+i).attr("src", "/images/button"+i+"_off.gif");                      //code =10100100 } } $('#'+code+"_"+num).attr("src", "/images/button"+num+"_on.gif"); } </script>

jquery after parseInt

<%@ page language="java" contentType="text/html; charset=UTF-8"pageEncoding="UTF-8"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%> <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> <%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Insert title here</title> <c:set var ="str8" value="010" /> <c:set var ="str10" value="10...