Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8627745
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T08:21:32+00:00 2026-06-12T08:21:32+00:00

I am using Ruby on Rails v3.2.2 and the jquery-rails v2.0.2 gems (including jQuery

  • 0

I am using Ruby on Rails v3.2.2 and the jquery-rails v2.0.2 gems (including jQuery UI). In a my view I have implemented a “basic” / “simple” jQuery UI Sortable Interaction and I would like to constrain users to sort only a given element in the list. That is, for example, if I have the following sortable list:

  • Item 1
  • Item 2
  • Item 3
  • Item …

I would make only the Item 3 to be sortable and the others to be not. Is it possible?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T08:21:34+00:00Added an answer on June 12, 2026 at 8:21 am

    You can use the handle option. With HTML like:

    <ul id="sortable">
      <li>Item 1</li>
      <li>Item 2</li>
      <li><span id="thisone">Item 3</span></li>
      <li>Item 4</li>
    </ul>
    

    You can set the sortable properties thus:

    $(function() {
        $( "#sortable" ).sortable({handle: '#thisone'});
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using rails v3.2.2 and jquery-rails v2.0.2 ruby-gems. I would like to display
Question 1) I would like to know whether ruby on rails have gems with
Using Ruby 1.8.7-p358, Rails 3.0.12, gem responder, gem simple-form; jquery_ujs.js I have a form
I am using Ruby on Rails 3.2.2 and I would like to know if
I am using Ruby on Rails 3.2.2 and I would like to know what
I have a Ruby on Rails page that loads another page using jquery. I
I'm using Ruby on Rails 2.3.8 and I would like to know how to
I am using Ruby on Rails 3.1.0 , jquery-rails and WillPaginate gems in order
i have an error , when trying to use highcharts. javascript_include_tag jquery-1.4.2.min,rails,highcharts C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/jquery-rails-1.0.14/vendor/assets/javascripts/jquery.js isn't
I would like to create something like this using ruby on rails. Im not

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.