Solved

datatables inputs disabled on

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

by Julian Matz As of jQuery (http://jquery.com/) 1.4 the .live() method (http://api.jquery.com/live/) supports custom events as well as some standard JavaScript events that it previously didn't support. Among these is the submit event. Unlike …
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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)

786 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