Solved

datatables inputs disabled on

Posted on 2014-11-18
2
74 Views
Last Modified: 2014-11-18
Im trying to put in a datatable to one of my web apps and the table loads in fine, but then it came to adding draggable in but then the filters stopped working, so after spending quite some time on this I decided to try and replicate the issue on jsfiddle which replicated in the first instance.
http://jsfiddle.net/262r9br1/

The issue seems to be with the 'cancel' option which I want to keep as I only want the title to be draggable.

Any ideas how I can do this to fix this issue?
0
Comment
Question by:tonelm54
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 22

Accepted Solution

by:
Mrunal earned 500 total points
ID: 40449969
hi
Just update your draggable function options like:

$('.draggable').draggable(
        {
            containment: "#divContents",
            scroll: false,
            cancel: '.widgetBody',
            handle: "thead"
        });


Add handle property and set only for thead tag.
Reason is that by default it sets complete object as draggable and make it as disabled.

check once and let us know if you are good on this.
0
 

Author Comment

by:tonelm54
ID: 40450267
So in my example I should use:-
handle: ".dragTitle"

Like http://jsfiddle.net/262r9br1/1/
0

Featured Post

Containers & Docker to Create a Powerful Team

Containers are an incredibly powerful technology that can provide you and/or your engineering team with huge productivity gains. Using containers, you can deploy, back up, replicate, and move apps and their dependencies quickly and easily.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The most up-to-date version of this article is on my Blog https://iconoun.com/blog/
Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question