Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

116
Views
jquery-ui-sortable not working in Firefox

Currently I have a sortable card container where the user can drag the cards and place them in any position they want to. I am using jquery.ui.widget.js library to do this. The following is the code in my AJAX to achieve this.

$('.sortable').sortable({
            cursor: 'move',
            start: function(event, ui) {
                ui.item.addClass('grabbing moving').removeClass('col-sm-6');
                ui.placeholder
                    .addClass('starting')
                    .removeClass('moving')
                    .css({
                        top: ui.originalPosition.top,
                        left: ui.originalPosition.left
                    });
            },
            change: function(event, ui) {
                ui.placeholder.removeClass('starting');
            },
            update: function(event, ui) {
                $.ajax({
                    url: '<?php echo site_url('listings/sortlisimages/' . $this->uri->segment(3)); ?>',
                    type: 'POST',
                    dataType: "json",
                    data: $(this).sortable('serialize'),
                    success: function(data) {}
                });
            },
            beforeStop: function(event, ui) {
                ui.placeholder.after(ui.item);
            }
        });

Now this is working in all the browsers I tested with except for FireFox. I'm basically trying this out: https://jqueryui.com/sortable/ and this example works in firefox for their official website so it's not a compatibality issue, yet for mine it does not work on firefox, not sure why. Also there are no errors in my console.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!