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 7593765
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T21:15:04+00:00 2026-05-30T21:15:04+00:00

I have problem with sortable <TD> ‘s. $(table tbody).sortable({ handle: td[tyhi=’0′], cancel: td[tyhi=’1’] });

  • 0

I have problem with sortable <TD>‘s.

$("table tbody").sortable({
   handle: "td[tyhi='0']",
   cancel: "td[tyhi='1']"
});

Code above is not working…
How to exclude a <TD> with attribute tyhi="1"?

http://jsfiddle.net/tiitremmel/sFLFb/

  • 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-05-30T21:15:05+00:00Added an answer on May 30, 2026 at 9:15 pm

    I need it so that you can’t put first or second to last position. tyhi="1" have to be always last

    In that case, you will need to put the sortable/non-sortable elements within different containing elements. In you example with a table, putting the td elements which must appear last in a tfoot would be most semantic:

    <table>
        <tbody>
            <tr>
                <td tyhi="0">first</td>
            </tr>
            <tr>
                <td tyhi="0">second</td>
            </tr>
        </tbody>
        <tfoot>
            <tr>
                <td tyhi="1">third</td>
            </tr>
        </tfoot>
    </table>
    

    jQuery

    $("table tbody").sortable({
       handle: "td"
    });
    

    Example fiddle

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two problem, This nestedSortable is not working in this code, where's the
I'm working with a demo of two sortable jquery lists... but have a problem
I have telerik grid on my page. But it working not correctly. Problem: when
guys! I have a problem. I need to initialize my sortable() with items 'li:not(.someclass)'.
I have problem compilin this code..can anyone tell whats wrong with the syntax CREATE
I have a problem with a jQuery UI 1.7.2 sortable list in Firefox 3.6,
i have a problem with the revert speed. Here is a working example http://www.jsfiddle.net/V9Euk/94/
I hope someone can help me. My Problem: I have 2 sortable UL's. <ul
I have a problem with the jquery sortable plugin. Indeed, I have items (questions)
I have a sortable column in a CellTable. The problem is that I have

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.