Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- route
- angular animation
- 앵귤러 애니메이션
- 모달
- angular route
- summary
- flex-1
- Oracle LISTAGG 사용 예시
- Angular Router
- mysql if
- 검색
- ApexChart
- prisma
- formgroup
- 스크롤 이벤트
- Router
- egov spring ajax 사용 예시
- Ionic modal
- 셀렉트박스 커스텀
- modal
- angular button
- 옵저버블
- 앵귤러 모달
- ajax 사용 예시
- 호버
- 스크롤 이벤트 감지
- TAILWIND
- 아이오닉 스크롤 이벤트
- angular modal
- scroll
Archives
- Today
- Total
깜놀하는 해므찌로
사용자 정의 속성 HTML attr data-속성이름 본문
반응형
SMALL
<td colspan="3">
<ul id="receiver" class="mail_select_list">
<c:if test="${fn:length(userList) gt 0 }">
<c:forEach var="user" items="${userList }">
<li id="${user.seq}-${user.position }-" class="mail_select_obj" data-userInfo="${user.seq}-${user.position }&${user.name }_${user.position }" style="display:inline-block; width:17%;">
<c:out value="${user.name }_${user.position }"/>
<c:if test="${(searchVO.procType eq 'update' && mgr0117VO.state eq 'N' && loginVO.seq eq mgr0117VO.rgstSeq) || (searchVO.procType eq 'insert') || (loginVO.authCode eq '1')}">
<a class="mail_del btn_del cursor" onclick="fncUserDel('${user.seq}-${user.position }', '${user.seq}-${user.position }&${user.name }_${user.position }');" style="display:inline-block;">x</a>
</c:if>
</li>
</c:forEach>
</c:if>
</ul>
</td>
1. data-userInfo = "" : data-속성명 = "넣을 값"
2. key : value 구성
<%-- 페이지 로드 --%>
$(function(){
$(".mail_select_obj").each(function(){
checked.push($(this).attr("data-userInfo"));
});
fncDate('eatDate');
return false;
});
3. jQuery attr 함수로 해당 속성에 접근하여 값을 가져오거나 수정할 수 있다.
반응형
LIST
'IT' 카테고리의 다른 글
Window.load, $(function()){}, $(document).ready(function(){} (0) | 2022.07.05 |
---|---|
JavaScript this 활용 예시 (0) | 2022.07.05 |
jQuery each 함수 활용 예시 (0) | 2022.07.05 |
jQuery unchecked 체크 안 된 체크박스 가져오기 (0) | 2022.07.05 |
Egov Spring MyBatis MySQL IF 변수 활용 예시 (0) | 2022.07.05 |