How to invoke ondragstart and drop event manually javascript -
i have used html ondragstart , ondrop events.
<div class="row height_380_div" id="target_div_id" ondragover="drag_over(event)" ondrop="drop(event)"> <div ondragstart="dragstart(event)" class="alert alert-warning col-lg-12 height_30_div node" draggable="true" id="call" name="call" > <button class="close top_min_10 hidden call_btn" data-dismiss="alert" onclick="remove_btn(this)"> ×</button><p class="top_min_10">call</p> </div> </div>
i want drag , drop dynamically on page load. means example, div should dragged 100 px left , dropped there, should called dynamically when page loads , should run on own. how that?
Comments
Post a Comment