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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T15:41:15+00:00 2026-06-01T15:41:15+00:00

I have a draggable table which all working fine, though I want to be

  • 0

I have a draggable table which all working fine, though I want to be able to drag it from the <th> row inside the table, not from all the <td>‘s.

<table id="draggable">
<tr>
<th id="drag">header (can drag table from here)</th>
</tr>
<tr>
<td>normal column (can't drag the table from here)</td>
</tr>
</table>
<script type="text/javascript">
    $( "#draggable" ).draggable({ opacity: 0.5 });
</script>

How can I deal this one?

  • 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-01T15:41:16+00:00Added an answer on June 1, 2026 at 3:41 pm

    Hiya working Demo here: http://jsfiddle.net/rAzL8/ & http://jsfiddle.net/rAzL8/1/

    Cooleos, so all you need to use :handle property on th tag on your table with draggable and bingo it will just handle the th tag of your table. hope this helps, CHeers

    Jquery Code

        $( "#draggable" ).draggable({ opacity: 0.7, handle:'#drag' });
    
     ​
    

    HTML

    <table id="draggable">
    <tr>
    <th id="drag">header (can drag table from here)</th>
    </tr>
    <tr>
        <td>normal column (can't drag the table from here) ;)</td> <td>another</td>
    </tr>
    
        <tr>
    <td>normal column (can't drag the table from here) ;) </td>
    </tr>
    
        <tr>
    <td>normal column (can't drag the table from here);) </td>
    </tr>
    </table>​
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have draggable list of < li > elements which I'm able to drag
I have made a table row draggable with jQuery. It works as expected (mostly)
I have a draggable object (div), and some droppable ones (table TD's). I want
Basically I have a draggable list which is connected with a sortable list. Works
I have some particular need to clone an element (image) and be draggable inside
suppose I have a panel with draggable element, and a droppable container,when I drag
I have a form created in Windows Forms which is draggable wherever I click.
I have a number of small icons which are draggable via jQuery which i
I have set up FullCalendar to accept drops, which it does. But the draggable
I have implemented the search bar in my app and it´s working fine, but

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.