Category "jquery"

Custom Button next to “ADD TO CART” button of WooCommerce based on Product Type

I want add a custom Button "View Demo" next to "Add to Cart" button of WooCommerce based on Product Type, both on main shop page and single product page. I've

Hide / Unhide Cloned form elements in jQuery. How?

I can find numerous examples of Hiding and unhiding form elements in jQuery. I can also find numerous examples of cloning form elements in jQuery. But is ther

Trim to remove white space

jQuery trim not working. I wrote the following command to remove white space. Whats wrong in it? var str = $('input').val(); str = jquery.trim(str); console.l

How to use z-index in svg elements?

I'm using the svg circles in my project like this, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 160 120"> <g> <g id="one">

How to use z-index in svg elements?

I'm using the svg circles in my project like this, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 160 120"> <g> <g id="one">

How to use clipboard.js

As you may surmise from this question, I'm not very good with javascript and am trying to get clipboard.js (https://clipboardjs.com/) working but can't. I foll

How to use clipboard.js

As you may surmise from this question, I'm not very good with javascript and am trying to get clipboard.js (https://clipboardjs.com/) working but can't. I foll

'data' is null or not an object IE8

I am transmitting message from an iframe to its parent page using postMessage. This is my code. In iframe: $(".history_date").click(function(event) { window.t

Preventing Links before jQuery is Loaded

How can I prevent links on click event before jQuery is loaded? The reason is I have few links that make AJAX calls through jQuery ajax functions and if user cl

How can I get my data from csv file to DataProvider

I need to take data(username and password) from my csv.file and use it to register some new Users using DataProvider in Selenium. I have made already Reader to

jquery ui datepicker select only current and previous month

Hello folks and thanks for reading. I am trying to implement jquery ui datepicker and what i am trying to do is the following ; Allow the user to selct only

jQuery: Check to see if table row containing certain values exists already

I have a jQuery script that appends a row to a table. In short, the user can select a value from a drop down menu, then enter in 'x' amount of months and hits '

How to send a message to a particular client with socket.io

I'm starting with socket.io + node.js, I know how to send a message locally and to broadcast socket.broadcast.emit() function:- all the connected clients receiv

Prblem with equal heights jquery

I have a div with id=group1port. Inside this div are multiple divs, one being id group1porteq. I am using the equal heights to make the div's the same height ho

convert textbox to multiline with jquery

I have a single line textbox. I want to with jquery convert it to multiline but control how many lines that are added to it. I want to also be able to limit th

jQuery - Execute scripts based on screen size

Is it possible to only run certain jQuery scripts if the screen/device size is above xxx pixels wide? So, for example, I only want to run a slideshow when peop

Listjs Make button for last page after filter

list.js Question: How do you create a div so when you click it, it shows the last page of the pagination, after I have done a filter. I have a list var List

Navigation idle on content download

Hello I have a website developed in cakePHP 2.10. For a while when I browse my site I realized that I have a loading time always in the order of 5 seconds even

Catching any click performed using jQuery

The noob way to do it I guess would be $('*').click(function(){...}); But is there any way I can catch any type of click, without having to register a listener

jQuery (UI): Detect checking of a checkbox

How can I make jQuery fire an event when a user checks a checkbox? <input type="checkbox" id="test" name="test" /><label for="test">Check me</lab