Category "jquery"

Ajax call populate Typeahead Bootstrap

What I'm trying to do is to get a json object via Ajax and populate the Bootstrap Typeahead with just one kind of value. Here is my code: nameTypeHead: functi

Dynamically changing the content of: meta property="og:image"

I want to change the main photo in a web page, I just have the url page. So I decided to use the meta written for Facebook sharing. I want to change the image

How to animate text with css font-weight property in jQuery ? normal to bold

I am trying to animation like opacity effect, which turns text bolder slowly. Tried usual animate() method but didn't work. Searched for it but coundn't find an

Error "TypeError: $(...).children is not a function"

I try to select a certain DOM element with jQuery. The HTML content: <html> <head> <script src="//ajax.googleapis.com/ajax/libs/jquer

what is the difference between .apply and .call [duplicate]

I find myself using jQuery objects with regular js objects often; I'm trying to figure out how I can utilize .call and .apply more often in my

How to Include Jquery function in a partial view in a modal

I have a jquery button click method which works fine in views other than modals.uploadbtn button click method doesn't work when partial view is loaded in the mo

how to use json file in html code

I have json file mydata.json, and in this file is some json-encoded data. I want obtain this data in file index.html and process this data in JavaScript. But a

Get current quarter in year with javascript

How can I get the current quarter we are in with javascript? I am trying to detect what quarter we are currently in, e.g. 2. EDIT And how can I count the numbe

Jquery Datepicker beforeShowDay not displaying tooltip and not assigning class in return

I'm trying to color the background of certain days in an embedded datepicker (not in an input field) and fire a tooltip on hover on those same colored days but

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