jQuery draggable not work containment

110 views Asked by At

I use draggable for a div

But containment not working in function

$("#main").draggable({
    start : function() {
      var ps = $('#ps').val();
      containment:[-1000,-1000,ps,ps]
    }
});

I want var ps use in draggable because this value change after

0

There are 0 answers