본문에있는 a태그를 스크립트의 동적문으로 태그자체 불러오기

본문에있는 a태그를 스크립트의 동적문으로 태그자체 불러오기

QA

본문에있는 a태그를 스크립트의 동적문으로 태그자체 불러오기

본문

$("a.href_con").html()

a태그자체를 스크립트 동적으로 불러오려면 어떻게 해야할까요? a태그 안에있는 텍스트만 불러와지는 상태여서요 ㅠ


<a href="<?php echo $list[$i]['href'] ?>" class="href_con">자세히보기</a>

본문에는 이렇게 삽입해놓은 상태입니다.

 

현재 스크립트 상태입니다.

 


<!-- 스크립트 -->
    <script>
        $(".popyt").click(function() {
            $(".video-popup").addClass("reveal"),
                $(".video-popup .video-wrapper").remove(),
                $(".video-popup").append("<div class='video-wrapper'><div class='video-wrapper_div2'><div class='video-wrapper_div'><iframe width='1000' height='563' src='https://youtube.com/embed/" + $(this).data("video") + "?rel=0&playsinline=1&autoplay=0' allow='accelerometer; gyroscope; picture-in-picture; encrypted-media' allowfullscreen style=''></iframe><div class='tit_box_con'><span class='ca_name_tit'>" + $(this).find("span").html() + "</span><span class='select_tit'>" + $("h5.select_view").html() + "</span><span class='subject_tit'>" + $(this).find("h4").html() + "</span><span class='wr_content_txt'>" + $(this).find("p").html() + "</span>" + $("div.bo_info_in_right").html() + "<div class='con_download'>" + $("a.href_con").html() + "</div></div></div></div></div>")
        });
    </script>

이 질문에 댓글 쓰기 :

답변 1

답변을 작성하시기 전에 로그인 해주세요.
전체 406
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT