[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건 1 페이지
  • RSS
팁앤테크 목록
번호 제목 글쓴이 조회 추천 날짜
825 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 713 0 11-02
824 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 950 0 07-10
823 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1939 0 04-06
822 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1796 0 02-21
821 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1686 0 12-31
820 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1749 0 12-24
819 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1772 0 12-04
818 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1819 0 10-17
817 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1780 0 10-02
816 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1732 0 08-04
815 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1498 0 08-04
814 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1829 0 08-03
813 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2135 0 07-08
812 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2050 0 07-08
811 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3130 0 07-06
810 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1720 0 06-09
809 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2135 0 06-03
808 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1949 0 04-16
807 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2221 0 03-29
806 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2148 0 03-26

검색

회원로그인

회원가입

사이트 정보

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

접속자집계

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