I'm trying to figure out a way to get an iframe to load with jquery toggle. I can get the iframe to toggle, but the iframe is truncated each time and only about ~20% of the iframe is displayed. The rest is cut-off.
http://jsfiddle.net/purpletenspeed/0dvdye07/2/
Any help would be greatly appreciated!!!
HTML
<ul <li> <a href="#" class="show_hide"> Toggle </a>
<div class="slidingDiv">
<iframe title="Launch Chat" width="500" height="600" src="https://home-c4.incontact.com/inContact/ChatClient/ChatClient.aspx?poc=8824e96a-2f91-4dbd-b9c0-eaf91a26bd48&bu=12" frameborder="0 </iframe>
</div>
</li>
JavaScript:
$(document).ready(function () {
$('.show_hide').click(function () {
$(".slidingDiv").toggle();
});
});
css
.slidingDiv {
height: 600px;
width: 300;
padding: 10px;
margin-top: 10px;
display:none
}