I created a list from which items can be dragged and dropped into items of another list. The problem is sometimes when the item is dragged at the edge and dropped on the edge of the droppable item nothings happens eventhough the mouse was inside the droppable item. Is there a way to improve this? Fiddle example grab the draggable
Tag: jquery-ui
Sorting li elements by class? jQuery / Javascript
I have multiple li rows like this I want to sort all the li rows by the span class “Status_online”. is this possible? Answer UPDATE You can use a combination of closest() to find the each .Record_row that is an ancestor of each .Status_online. Then use .each() on each online .Record_row and use .before() to place them before the first
Event listener conflict between jQuery and OpenLayers
The application is a web map (OpenLayers 2) on which one can open dialog boxes by clicking certain features. Dialog boxes are handled with jQuery-ui. The Bug: On resizing a dialog, if the user drags the cursor too quickly, the cursor outpaces the size updating of the dialog. Normally this would require pretty jerky movements, but due to just how
Use jQuery UI datepicker with async AJAX requests
I am trying to enable specific days in a jquery-ui datepicker. So far i have set my sql scripts and json files and everything is working fine except the response time, because i’ve set async to false. My jquery code is. Can anyone help me out? I repeat the above code is working fine but with not good response time
Pickadate Time Selector Disappears on Click on JQuery UI Dialog
If you open a time picker in a jQuery dialog using the classic theme and try to use the time picker scroll bar to move down the time list, the time list disappears. You can see the issue here: http://jsfiddle.net/7c2z840a/7/ The problem appears in both Chrome and Firefox, but not in IE. Anyone have any ideas as to why this
jquery sum of multiple input fields if same class in one input
Hello I need to sum the values of same class input in one input with class name total. Possible? A working fiddle here Answer You pretty much had it, just needed to adjust your JQuery a little bit for the appropriate selectors updated fiddle : http://jsfiddle.net/5gsBV/7/
Get control attributes with jQuery and create json
I have multiple checkboxes in a view and each one has some data attributes, example: Once the button is clicked I’m iterating through all the checkboxes which are selected and what I want to do is get the data-price and value fields for each selected checkbox and create JSON array. This is what I have so far: I’m not able
How to combine two javascript FormData objects
I need to combine two FormData objects and post them using XMLHttpRequest. One of the forms contains file input. It doesn’t work when I use $.extend or if I use serialize() to combine the form that doesn’t have file input. Any idea how to do this? Answer You cannot couldn’t. FormData is was unfortunately not enumerable. However, as you say
if/else to call the function, the rest of the logic is identical
I am having a js code inside a js function. This contains an if else condition which contains same functionality, the only thing changed is the parameter. So the only thing different is the parameter string you are passing to the functions. The if/else is used to call the function, the rest of the logic is identical. Is it possible
Calling a function on Bootstrap modal open
I used to use jQuery UI’s dialog, and it had the open option, where you can specify some Javascript code to execute once the dialog is opened. I would have used that option to select the text within the dialog using a function I have. Now I want to do that using bootstrap’s modal. Below is the HTMl code: And