Category "jquery"

Select2 - use JSON as local data

I can get this to work... var options = [{id: 1, text: 'Adair, Charles'}] $('#names').select2({ data: options, }) But i cant work out how to get from h

JQuery AJAX call to SOAP Web Service - Access denied. Working in SOAP UI

JQuery AJAX call to SOAP Web Service throws exception as "Access denied". See screenshot. It is Working in SOAP UI so SOAP request seems correct. Please help in

Parsing URL hash/fragment identifier with JavaScript

Looking for a way to parse key pairs out of the hash/fragment of a URL into an object/associative array with JavaScript/JQuery

JavaScript Scale Text to Fit in Fixed Div

In JavaScript/jQuery, how can I scale a varying-length line of text inside a fixed-width Div so that the one line always fits inside the Div (as one line)?

how to destroy a function in another function javascript?

Function: function abc() { $('#table_id tr td').removeClass('highlight'); $(this).addClass('highlight'); tableText($table_label,$table_id); } abc();

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