1
JQuery Bubble Popup 라이브러리를 사용하여 innerHtml 변수에 숨겨진 div를 표시하려고합니다. 내가 이것을 넣으면JQuery Bubble Popup : innerhtml hidden div
가 작동 내가 예상대로 작동하지 않는 것은이<div class="button"> Show stuff </div>
<div class="information"> foo </div>
<div class="button"> Show stuff </div>
<div class="information"> bar </div>
<script>
$(document).ready(function(){
$('.information').hide();
$('.button').CreateBubblePopup({
position: 'bottom',
align: 'center',
width: '300',
innerHtml: $(this).next(".information").html(),
innerHtmlStyle: { color:'#000', 'text-align':'left', 'font-size':'110%' },
themeName: 'grey',
themePath: '/static/images/jquerybubblepopup-theme',
selectable: true,
});
});
</script>
이 문제가 라인
innerHtml: $(this).next(".information").html(),
에 있기 때문에 : 지금은 이것을 가지고
innerHtml: 'testing jquery bubblepopup',
정확히 무엇을 설명 할 수 있습니까? –