[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 825건 3 페이지
  • RSS
팁앤테크 목록
번호 제목 글쓴이 조회 추천 날짜
785 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2593 0 10-31
784 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2817 0 10-20
783 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3605 0 09-14
782 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3722 0 06-20
781 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3793 0 06-20
780 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3238 0 05-18
779 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2924 0 05-17
778 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3470 0 05-14
777 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3845 0 05-14
776 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2919 0 05-14
775 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3104 0 05-13
774 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4096 0 05-01
773 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 5479 0 04-12
772 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 5114 0 03-20
771 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 18419 0 09-21
770 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 27202 0 07-30
769 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 25412 0 07-15
768 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 51446 0 07-10
767 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 24664 0 07-07
766 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 26759 0 06-15

검색

회원로그인

회원가입

사이트 정보

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

접속자집계

오늘
4,108
어제
4,566
최대
6,509
전체
1,068,769
Copyright (c) 株式会社YHPLUS. All rights reserved.