I've an iframe(which is a bot icon) in a main site. I am unable to make the iframe element draggable using jqueryui draggable()
function.
The code snippet is below
$("#testIframe").draggable();
#testIframe {
position: absolute;
bottom: 0;
right: 0;
background: #ccc;
padding: 10px;
width: 200px;
height: 100px;
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
<div class="parent">
Parent text....
<div class="child">
<iframe id="testIframe" width="100%" height="300" src="//jsfiddle.net/iamraviteja/09hdej6t/2/embedded/" frameborder="0"></iframe>
</div>
</div>
My Problem: If you try to drag
testIframe
, you can't drag it. Why?