Solved

datatables inputs disabled on

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In this article you'll learn how to use Ajax calls within your CodeIgniter application. To explain this, I'll illustrate how to implement a simple contact form to allow visitors to send you an email through your web site.
How to build a simple, quick and effective accordion menu using just 15 lines of jQuery and 2 css classes
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…

829 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