Solved

datatables inputs disabled on

Posted on 2014-11-18
2
68 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
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Introduction Got endorsements from your clients?  Great!  There is almost nothing better than word-of-mouth advertising.  But how can you do that on the internet?  Sure you can make a page for endorsement quotations and list them all, but who is …
Introduction JSON is an acronym for JavaScript Object Notation.  It is a text-string data transport mechanism, capable of representing simple or complex data structures in a consistent and easy-to-read manner.  Similar in concept to XML, but more e…
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)

747 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now