Category "jquery"

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

Equal height columns using Bootstrap and jQuery

I am using Bootstrap in a current Web project but I don't know how to dynamically set the same height of column elements. I already know the .row-eq-height clas

Stopping modal popup after first visit

I have this modal popup (from topModal) on a website (i know they're annoying but my client insisted!) that pops up after 3 seconds of landing on the page. Is

Form in modal window with Ajax doesn't work in FF?

so i have a simple form in a bootstrap modal window. Now with an ajax call i trigger a .php file which save the data or returns a error. In chrome and safari e

Uncaught TypeError: jQuery(...).dialog is not a function

I have tried all CDN but always get error. Please suggest correct CDN jQuery(document).ready(function() { debugger; jQuery(function() { jQuery("

HTML5 Canvas toDataURL returns blank

I wanted to upload the image files, draw them into canvas, make changes and save it in the database. I tried to test the base64 value that the canvas image (Pic

How to plot x,y coordinates of item on a image in html

I need to place/plot a pin(Small image to point the parts of person) on a image(For example: A image of person). I am getting x,y,height,width values from ser