Category "jquery"

Chrome Alarm events keeps firing every 4 seconds

I am trying to pass a message triggered by an alarm from background.js to loader.js. Here is my code: manifest.json: { "update_url": "https://clients2.google.

Python partial equivalent in Javascript / jQuery

What is the equivalent for Pythons functools.partial in Javascript or jQuery ?

Wordpress : Load the whole Page using AJAX

I currently using Oxygen Builder in my wordpress, tryna load my other page using AJAX and I'm very very noob at this. Then, i've done some research about it fir

jQuery DataTables format output for export, exclude buttons

For the jquery data table, I have a table displayed in one of the columns in the Datatable and wanted to enable the user to toggle it on/off. When exporting to

How to trigger 'submit' event before the 'blur' event is triggered?

I have a form which has an error message as shown in the example below: http://codepen.io/anon/pen/dYWyEM?editors=101 Steps to reproduce the problem is as follo

Get value of the clicked button

I have multiple buttons containing different values. My buttons :- <button id="1" name="1" value="1">Button1</button> <button id="2" name="2"

Simulate backspace button JS

I want to create a custom backspace button with the same logic as "backspace" button on a keyboard. I use the following code: function backSpace() {

Progress bar with intervals

I am trying to create a progress bar with steps and a play/pause button. I am having trouble with creating the play/pause button but the case is that onload pro

How can you determine if a certain html table header exists using jQuery?

Let's say I have the following table: <table id="mytable"> <thead> <tr> <th>Col 1</th> <th>Col 2</th> &

Call function on scroll only once

I got a question regarding a function that will be called if the object is within my screen. But when the object is within my screen the function is been called

Script causes “Refused to execute inline script: Either the 'unsafe-inline' keyword, a hash… or a nonce is required to enable inline execution”

I keep getting this error: Refused to execute inline script because it violates the following Content Security Policy directive: "default-src 'self' data: g

jQuery drag and drop is not working with mobile touch

I am using jQuery drag and drop library, but its working well in web browsers but not working in mobile touch. Here is my html and javascript .. P.S. I want to

Create array of available time slots between two dates

I am weak on front end work and need a little help here. I am developing a basic form that gives the users available schedule options for booking an appointmen

Required fields are not working with ajax

I have created a Registration Form and set its input field to require attribute but its not working with ajax <div class="form-group"> <input requ

When auto-submitting a form, how do I add a header?

I’m using JQuery 1.9.2, although this question might not concern JQuery. I’m auto-submitting an HTML form using this code … <script type

How to insert text dynamically in CKEDITOR

I use plugin CKEDITOR for word editor in my web. Inside the editor I have a table which have two columns . I want to achieve that in the first column if the use

Restrict table data 'contenteditable' attribute to only Integer

The below code allows me to edit the table data row but may i know how can i restrict it to only integers. Thank you in advance for your time :) <td conte

IFrame Resizer not resizing

I'm working on this page here: http://factor1hosting.com/~dnaz/wordpress/certifications/ And I am trying to pull in a cross domain iframe. I am using @DavidJB

jQuery to scroll active horizontal menu item to the center

I am working on a responsive sub menu that on small screens will be scrollable horizontally instead of stacking the links. I can make that work. What I would l

DataTables Export Button Issue - Button Not Displaying

I'm trying to display an export button in the center of the screen and below my DataTable. The button isn't displaying at all. I've downloaded the DataTable fil