Answers for "Div draggable x axe only"

0

Div draggable x axe only

IN html :
<script type="text/javascript" src="http://code.jquery.com/jquery.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>

in js:
$(function () {
        $("div[id='nameOfDIV']").draggable({
                axis: "x"
   });
Posted by: Guest on March-01-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language