[jQuery] Multiple modal 멀티모달2 > 팁앤테크

본문 바로가기
사이트 내 전체검색

팁앤테크

[jQuery] Multiple modal 멀티모달2

페이지 정보

본문

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<!-- Latest compiled and minified JavaScript -->
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>

 

<img height="100" width="80" id="1" data-toggle="modal" data-target="#myModal" src='http://tympanus.net/Tutorials/CaptionHoverEffects/images/1.png' alt='Text dollar code part one.' />
<img height="100" width="80" id="2" data-toggle="modal" data-target="#myModal" src='http://tympanus.net/Tutorials/CaptionHoverEffects/images/2.png' alt='Text dollar code part one.' />
<div id="myModal" class="modal fade" role="dialog">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-body">
                <img class="showimage img-responsive" src="" />
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
            </div>
        </div>
    </div>
</div>

 

 

<script> 

$(document).ready(function () {
    $('img').on('click', function () {
        var image = $(this).attr('src');
        //alert(image);
        $('#myModal').on('show.bs.modal', function () {
            $(".showimage").attr("src", image);
        });
    });
});

</script> 

추천0

댓글목록

등록된 댓글이 없습니다.

Total 32건 1 페이지
  • RSS
팁앤테크 목록
번호 제목 글쓴이 조회 추천 날짜
32 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3132 0 12-20
31 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2592 0 10-31
30 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3721 0 06-20
29 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3792 0 06-20
28 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 25410 0 07-15
27 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 11044 0 04-08
26 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 8999 0 03-15
25 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 8719 0 01-05
열람중 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 11915 0 08-25
23 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 11720 0 08-25
22 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9550 0 08-23
21 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 12144 0 05-04
20 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9595 0 02-08
19 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 10509 0 02-06
18 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 10346 0 02-06
17 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 10850 0 02-06
16 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 13271 0 02-04
15 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 11519 0 12-09
14 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 11754 0 12-05
13 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 12113 0 05-15

검색

회원로그인

회원가입

사이트 정보

株式会社YHPLUS / 대표 : ZERO
〒140-0011 東京都品川区東大井2-5-9-203
050-5539-7787
오픈카카오톡 (YHPLUS) :
https://open.kakao.com/o/slfDj15d

접속자집계

오늘
4,474
어제
4,345
최대
6,509
전체
1,064,569
Copyright (c) 株式会社YHPLUS. All rights reserved.