Category "jquery"

jQuery DataTables within jQuery UI Tabs

How do I adjust the jQuery DataTables columns within jQuery UI Tabs? This is my JS code: $('#myTab a').click(function (e) { e.preventDefault(); $(

datetimepicker scrolls in the reverse direction for timepicker when using the mousewheel

I am using the jquery datetimepicker plugin provided here and currently facing weird reversed-scroll issue. I have downloaded the zip from their git repo, run n

Slick.js: Hide slider until images have loaded

Using Slick.js, how does one hide the slide until the images have loaded or at least the first image has loaded? I tried using init but couldn't get it to work.

Uncaught Error: Based on the provided shape, [1024,3], the tensor should have 3072 values but has 30

I am trying to build a Tensorflow.js app, it works all good locally, but when I hosted it (I tried Netlify and Vercel on both Firefox and Chrome) I got this err

Datatables header misalignment

The picture below shows the header of the datatable misalignment before you click on the textbox (search/filter..). once the latter becomes in focus, the header

Basic Waypoint usage

I'm trying to use the Waypoints plugin for jQuery to lazy load elements on a webpage. However I can't get it to work. :( I made a very basic example: http://jsf

Jquery select all if not disabled

I am using the following script to select all checkboxes with a given class. $(document).ready(function(){ // 1 // 2 $(':checkbox.selectall').on('click

Basic Waypoint usage

I'm trying to use the Waypoints plugin for jQuery to lazy load elements on a webpage. However I can't get it to work. :( I made a very basic example: http://jsf

How to reload a div for equal height child on window resize

I wrote a script to give equal height to child elements of wrapper. It is working fine on page load, but when I resize or change the orientation of my iPad, the

Equal height items in a list

I want that all elements in a list be equal height. For this, I am using the jquery.matchHeigh plugin. However, the selected items are not being updated automat

Get the value of the radio button that was selected before the user selects a new one

If I have 3 radio buttons, is there a way through jQuery of finding out the value of the one that was selected before the user clicks a new one? <div id="r

How to change current time of a paused html5 video and start playing from that position?

I have a html 5 video on a page like this: <video preload="none" id="movie" poster="http://my_poster_url.com/sourcefile.jpeg" controls> <source i

jQuery second selector not working

I have this jQuery code that works: $('#info').on('click', '.border', function() { $(this).children(".moreinfo").slideToggle(200); }); Whe

Sequencing two action on a button click

Problem: I have a asp.net button and on click of that I am displaying another window using window.open() at the client side using <script></script>

Retrieving the <img> tag inside of cdata

I know what's the meaning of CDATA. But what I wanted for help is if someone could give me the right javascript for getting the img tag inside rrs cdata, please

How to refresh a DIV in jquery (mobile)?

UPDATE: Sorry, I accidentally copied the data-dom-cache="true" line into my content-div. Seems very logical that the app is loading from the dom instead the new

IE bug triggers click for 2 buttons?

I am trying to trigger the submit button when a user presses enter. Works great for all browsers except Internet Explorer 9. Strange thing is that IE insists on

How do I bind data for autocomple to input fields in materialize?

I'm using materialize framework for a personal project and following the documentation I was able to add the data to autocomplete my form fields. In this form,

How to wait to append the data until after the form data has been added?

When I click the #screenrId, it submits the default data without having time to add the new data the user inputs. How to wait to append the data until after the

JavaScript Form Calculation with Radio Buttons & Textboxes

The jQuery library is not importing correctly and the form is not displaying the answer in the BAC field when clicking on the button. The answer should be rela