[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건 5 페이지
  • RSS
팁앤테크 목록
번호 제목 글쓴이 조회 추천 날짜
745 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 19043 0 12-22
744 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 16364 0 12-18
743 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 14279 0 12-02
742 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9213 0 10-22
741 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 10247 0 08-21
740 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 10063 0 08-15
739 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 10078 0 08-12
738 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9001 0 06-14
737 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9633 0 06-09
736 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9878 0 04-25
735 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9069 0 04-20
734 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 8863 0 03-30
733 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 8457 0 12-05
732 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 8908 0 12-04
731 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 10076 0 08-18
730 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9185 0 07-14
729 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 8983 0 07-10
728 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 11054 0 04-08
727 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9005 0 03-15
726 제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9382 0 01-25

검색

회원로그인

회원가입

사이트 정보

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

접속자집계

오늘
773
어제
4,822
최대
6,509
전체
1,070,256
Copyright (c) 株式会社YHPLUS. All rights reserved.