jQuery deferreds and promises - .then() vs .done()

jQuery
I've been reading about jQuery deferreds and promises and I can't see the difference between using .then() & .done() for successful callbacks. I k...
3 years ago

event.originalEvent jQuery

jQuery
I am currently immersed in the jQuery learning center. I'm going from start to end. I just read this paragraph: It's also important to note that ...
3 years ago

Center active slide with showing 3 slides in slick.js

jQuery
I'm using slick.js plugin and I want to make something like on their website. Here is DEMO. Problem is, that first active slide 1 is not centered. I ...
3 years ago

jquery hide the active accordion content

jQuery
Im implementing basic jquery accordion, if the accordion content is open, both slide up and slide down actions are performed. It should only hide (sl...
3 years ago

Lightboxes doesn't work at all

jQuery
I try to include a lightbox on my site hosted locally on a virtual machine. But no matter how I'm struggling, even by retrieving codes that work on t...
3 years ago

Webkit and jQuery draggable jumping

jQuery
As an experiment, I created a few div's and rotated them using CSS3. .items { position: absolute; cursor: pointer; backg...
3 years ago

How to clone Canvas with Jquery in a Drag n Drop

jQuery
I need to clone my Cavans every time i Drag him into the dropzone My Canvas <canvas id="nota1" class="lego Nota" width="10" height="20"> </...
3 years ago

multiple datatable on a page with more then 10,000 record loading slow

jQuery
I have 5 datatable on different tabs on same page, I'm filling them up on page load in same method. I'm using entity framework,database first in mvc ...
3 years ago

JQuery - Clickable table row, except last cell

jQuery
I'm trying to user JQuery to make a table row clickable and redirect to a URL which is hidden in the first cell. I've got an image in the last column ...
3 years ago

How to get last class by Jquery

jQuery
my class is like this; <div class="card-box non-clickable offer"></div> and I just want to get offer class I don't want to get before ...
3 years ago

How to use a dynamically generated id in window.location.href?

jQuery
I have the following code in js and htm. <div id="div1_myDiv">This is my div1</div> <div id="div2_myDiv">This is my div2</div&gt...
3 years ago

Use ASP.NET MVC validation with jquery ajax?

jQuery
I have simple ASP.NET MVC action like this : public ActionResult Edit(EditPostViewModel data) { } The EditPostViewModel have validation attribute...
3 years ago

Uncheck a checkbox with conditions

jQuery
I would like to make a survey on a website with a question and three possible answers. The problem is that i'm having trouble with the check/uncheck...
3 years ago

Calling a click function when pressing the Enter key

jQuery
I've been having a hard time figuring out why keypress won't work. No, I mean it's working but the result returned is json. I wanted to return the htm...
3 years ago

Automatically check parent when child is checked

jQuery
When any checkbox with class .child-term is checked, I automatically need to check the preceding checkbox with class .parent-term. I only want to che...
3 years ago

Jquery drop down changing value

jQuery
I am junior in jquery so not be serios. I want to do simple script which adding 1 to the dropdown list value. I tried many of them by this link: Addin...
3 years ago

Table: Check all rows, then check all tds with class, take action

jQuery
banging my head against the wall on this. I'm trying to clear table if all rows tr and columns td contain the text "null". Right now it looks for if o...
3 years ago

Backbone change event not fired for select field selected by jQuery

jQuery
I have a button that when clicked sets the value of a select field and also have a change event for the select field. The 'change select[name=location...
3 years ago

Kendo validator seems ignore pattern attribute (regex)

jQuery
<input id="myID" name="myName" class="form-control k-invalid" data-bind="value: ViewModel.JobNo, visible: Layout.isE...
3 years ago

Login is not executing

jQuery
I've made a login page, but it isn't working. My HTML is: <form name="form" class="login-form" method="POST"> <input type="text" p...
3 years ago