V
V
Vasya Surname2017-07-02 00:38:40
UIkit
Vasya Surname, 2017-07-02 00:38:40

How to make a function work after dragging an element?

Component https://getuikit.com/docs/sortable
Everything is set up dragged, but I don’t understand how to make the function work after dragging I
thought something like this, but not like that

<div id="editor" class="uk-text-left text" uk-sortable="handle: .temp-img; stop: fun"></div>
      <script>
      	function fun(){
      	    alert('hi')
      	}
      </script>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
roswell, 2017-07-02
@bazilio2010

<div id="editor" class="uk-text-left text" uk-sortable="handle: .temp-img"></div>
<script type="text/javascript">
    $( '#editor' ).on( 'stop', function( event ) {
        console.log( event );
    } );
</script>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question