Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Questions tagged [jquery]

jQuery is a popular cross-browser JavaScript library that facilitates Document Object Model (DOM) traversal, event handling, animations, and AJAX interactions by minimizing the discrepancies across browsers. A question tagged jquery should be related to jquery, so jquery should be used by the code ...

-2
votes
0answers
21 views

Add div tag within pre tag using JavaScript

I want to add a div tag within a pre tag already in my HTML file using JavaScript. Currently I have: <pre id="usrOutput" class="hash-output"> </pre> in my HTML file and I'm writing to ...
0
votes
2answers
24 views

Replace part of html text with input val JS

I've been trying to replace part of the header with the input from the text field. When a user enters zip code the text would read "GREAT NEWS! WE HAVE A LOCATION IN 12345". <h4>GREAT NEWS! WE ...
0
votes
0answers
12 views

How to store jQuery roundslider value in a variable

I need to store the jQuery roundSlider value in a variable. The slider options look like this: $("#slider").roundSlider({ sliderType: "min-range", radius: 125, value: 0, circleShape: "...
0
votes
1answer
33 views

How to make a background image change on timer

I have a simple full screen background image as shown below: body { /* The background image used */ background-image: url("../images/bg-one.jpg"); /* Full height */ height: 100vh; width: 100vw;...
0
votes
0answers
13 views

rake assets:precompile with commas

Can you run rake assets:precompile and use commas in place of semi colons? I ask because i'm running into another issue where my production js asset statements are separated with commas but my staging ...
1
vote
3answers
16 views

loop to check if elements exist in jquery/js

so, I have an HTML file with some lets call them boxes. Each box has an ID: CC1, CC2, etc. I'm looking todo some kind of loop where I type CC and add i to the end, so it should ask if CC+i exists ...
0
votes
0answers
13 views

Horizontal swipe event listener on touchscreen

I have one slick slideshow on a webpage. I created a function for every image. There is one wrapper that appears or disappears when I tap on one image. There is another function that at every touchend ...
1
vote
3answers
33 views

Change color and text value of a sibling div element when radio selected

I have a group of divs turned into radio button using JavaScript. I need to have it when the button is selected, for another div, within the same form, but a sibling, to reflect the radio-value of the ...
0
votes
1answer
19 views

What does jQuery.ajax xhrFields: {withCredentials: true} do? [duplicate]

I know that this is a newby question, but I am new to learning Ajax. I was reading some code and came across this line xhrFields: {withCredentials: true} I was able to follow the rest of the code; ...
1
vote
0answers
15 views

Bootstrap Collapse not working after dynamically created elements

having difficulty with the Bootstrap "collapse" function on a dynamically generated HTML page. I looked at this link (among many others), but nothing is working. I'm running a page where data is ...
0
votes
0answers
8 views

Stop fixed sidebar from overlapping footer [not duplicate]

Please note: At first glance this may appear to be a duplicate, but you'll see it is not since I'm not trying to accomplish the same thing the other posters were. As you can see in the snippet my ...
-1
votes
1answer
32 views

How to change date format (MM/DD/YY) to (DD/MM/YYYY) in date picker

this.locale = { direction: 'ltr', format: moment.localeData().longDateFormat('L'), separator: ' - ', applyLabel: 'Apply', cancelLabel: 'Cancel', ...
0
votes
1answer
37 views

How to check variable value on console in php?

I want to check variable value in console I have tried everything but I am not getting the value in console. // Here I want to check $cart_id value before if Statement echo "Cart Id Before If ...
2
votes
3answers
28 views

How to calculate HTML table columns (using javascript or jquery) with a user defined equation

I need some help with dynamically calculating an HTML table column using data from other columns and using a user-defined equation. For example, if the user inputs the equation C1 + C2 * 0.5 + C3 * 0....
0
votes
0answers
21 views

Bootstrap-select no longer drops down after upgrading Angular 5.2 to Angular 6, Bootstrap 4, upgrade, jquery 3.3.1

After upgrading to Angular 6, the bootstrap-select element no longer drops down unless I remove the class="selectpicker". The little dropdown arrow no longer shows up either. I've tried downgrading ...
1
vote
1answer
29 views

Getting the total length of multiple Vue.js data output

TLDR; I have a Vue dropdown component that populates a list of selectable items. <dropdown-component inline-template> <div> <!--Drop Label-...
-2
votes
0answers
18 views

Jquery datatables and tabledit

Can someone please till me if it's possible to use the two plugins together to do live edit on datatables rows? Or if there is another alternative to do it?
0
votes
0answers
44 views

Auto complete as you type ASP.NET MVC

My problem: I've an application up and running implemented with Asp.Net MVC, connected to a remote server which uses MySQL. I have retrieved the drop down list from the remote server and it is ...
0
votes
2answers
40 views

Why is the dialog not showing?

The alert() works when the Send button is clicked but the dialog never shows. I have been going crazy trying to figure out why this is. What am I doing wrong? Please see code below: Thanks, TD ...
-4
votes
0answers
28 views

Sequential Ajax Calls in a Loop [duplicate]

I have to use multiple ajax calls inside a 'for' loop. Here is the code: for (a=0; a<secilenModeller.length; a++) { (function (a) { model=secilenModeller[a][0]; S1=secilenModeller[...
1
vote
1answer
27 views

Jquery array pass 'All' text until values entered and replace text with 'All' if they are cleared down again

I am stuck with a Jquery loop. Currently I have two checkbox groups which loads the seperate array of data and passes the values of the checkboxes through to the list1 or list2 div's respectively. ...
-2
votes
3answers
41 views

How to get last insert id from mysql database in php?

I want to get last insert id from my table cart in my else statement after the insert. But I am not getting the id. Please check my code and suggest what am I doing wrong: // Check to see if the cart ...
0
votes
0answers
9 views

How to fadeOut and fadeIn rotating pages [duplicate]

I have a list of 6 pages, each one is an HTML file that gets updated by an external system every few seconds. I want to rotate the content of those pages in an infinite loop. I need to load the file ...
0
votes
1answer
29 views

DateTimePicker - Add days in a given period

Good Morning. I found this code that serves my purpose: $(function () { $('#CheckIn').datetimepicker({ format: 'MM/DD/YYYY' }); $('#CheckOut').datetimepicker({ useCurrent: false,//...
0
votes
0answers
21 views

How to Access Object properties by Key [duplicate]

I'm trying to access a specific property in an object. The object has unique keys (referencing state codes). I'm wondering how I can access the label property be referencing the unique state code (ex. ...
2
votes
1answer
14 views

Jimdo: Stop animation when SoundCloud-Player song is over

With some help, I managed to create an animation for a SoundCloud player. When the play button is pressed a spinning disk animation starts. This works as expected. Also, when I press the stop button, ...
1
vote
0answers
30 views

How to Get Hex Color Main Category (Not Exact Name)

Can you please let me know if there is breakpoints between HTML main colors to do some calculation against them. I mean if we we have some hex like var a = "#117A65"; var b = "#A04000"; var c = "#...
0
votes
1answer
15 views

How to put arrows in Owl Carrousel?

Is there any way to put navigation arrows in owl carousel by js or html+css? It is working correct, but I think it's no so good you have to drag the image to navigate, therefore a arrow would fix this ...
0
votes
1answer
18 views

MVC 5 - Checkbox and Conditional CSS based on value of property on viewmodel

I have a partial MVC 5 view that passes in a view model. On the viewModel there's an "IsActive" property... Based on this property, I would like to add or remove the @disabled = "disabled" html ...
0
votes
0answers
18 views

Questionnaire Radio button unchecks after click

I'm quite new with vue and did a questionnaire with radio buttons and a backwards navigations which remember the preview answer and sets it to checked. But I'm facing an obscure issue. The first ...
0
votes
1answer
12 views

Component's JavaScript doesn't execute on routing with React router

I'm working on my first React project. I need to style some parts with JS because I'm dependent on the content. I'm calling the JS function from the components componentDidMount() upon JQuery's $(...
1
vote
0answers
33 views

jQuery events not triggering on initial page load

The following php is outputting various videos on my page with the class name ".videos": <?php wp_video_shortcode($attr, $content); ?> The generated code for each video looks like this: &...
0
votes
1answer
25 views

Updating a set of <select multiple> with JQuery chosen

I have a page with two set of which has the JQuery chosen function attached to it. When the user clicks on a checkbox, I need to a) take a list of one of the two set of select b) for each select ...
0
votes
0answers
17 views

How to run simple jQuery AJAX calls in parallel in Symfony / Twig?

I wonder why my jQuery $ajax(...) calls do not run in parallel. The following code is used within a Symfony 2.8 project: // Simple Controller to handle the request... class TestController extends ...
-2
votes
2answers
23 views

Make jquery selector dynamic [duplicate]

I need to create a jquery selector dynamically by concatenating a function input id onto the str "a" eval(0); function eval(id) { var a = id + 1; a = "a" + a; $("input[name='a']").val(...
0
votes
0answers
17 views

Fire event when user scroll reach an anchor-element

Is there a way to fire event when user manually scrolls to an anchor element? Actually detecting the anchor and not using distance from top.
0
votes
0answers
5 views

JQuery Library SPservices won’t add new item to list

I'm struggling with my SPServices function that is supposed to add a new item to the list. however, when I run this it alerts success but when checking the list nothing has changed. all the Values ...
0
votes
1answer
19 views

How to close a Bootstrap modal after routerlink redirection with Angular 6

I am developing my first Angular app. I have a Bootsrap modal with a button wich redirects to another section of the app. <button type="button" class="btn btn-info btn-lg" routerLink="/contactar"&...
1
vote
3answers
35 views

how to post select option value into jQuery ajax with name

I want to send section option value with ajax but only selection and checkbox the problem is that section and checkbox post undifined thanx advanced php code <?php $paramateres = new ...
0
votes
0answers
31 views

90%, 110% zoom stops jQuery animation

I have pop out menus using jQuery animate. In Chrome, zoom levels of 90% and 110% prevent the animation from running and the menu is not displayed. There is no reason the user will want to zoom to ...
1
vote
1answer
35 views

How to name a dynamically created textbox through jquery function?

I want to give a name to my dynamically created textbox on a specific event. I have written the following code where the function GenerateTextBox returns the name of the textbox and the value "". The ...
0
votes
1answer
31 views

Dispay content based on dropdown choice

Hi I'm making a web app using mvc .net(c#) with a registration page. There are two types of users, lets call them type 1 and type 2. I'm my form I have a drowpdown list where they can choose their ...
-1
votes
0answers
30 views

.text() display a image

I have here a jQuery code that makes it possible to see a loading icon with the progress in percentage. Now I found that you can also add text to the end of the loading script (100%). After it reaches ...
0
votes
0answers
16 views

Add, delete, edit cells buttons in DataTable using JSON and Node.JS

I wanted to add the functionality of adding, delete, and modifying content on my table. So far it looks like this: I would need to add two buttons (add and delete) and on hover of the cell, edit. My ...
0
votes
0answers
21 views

How to implement loading new articles while scrolling down on the web page change urls in address bar

I am interesting in designing web page and I usually go to some websites to study their frontend features. I recently visit REUTERS and realized that their site will load new articles while I am ...
0
votes
0answers
27 views

Return array from object if contains string jquery

I use regex to query all square brackets in string by this command: var sizecolor = textvalue.match(/[^[\]]+(?=])/g); I want to get a square bracket in object above if it contain "SPrice"; Example: ...
1
vote
1answer
24 views

Different position.y in Chrome and Firefox

I've got a navbar which sticks to the top on scroll. I have a code to get the position of the navbar after scroll. In Chrome I get position.x = 0, and position.y = 0 as expected as the navbar is right ...
0
votes
1answer
29 views

Open an accordion while using <a href=“#link.html”>link</a> & <a name=“link”></a>

I usually get my codes from: https://www.w3schools.com. There is also an accordion to take with this code; However when I use link -> to The accordion doesn't jump open but stays closed. Does ...
0
votes
2answers
27 views

Dynamically adding table row beside the first table row instead after the first table row using javascript

I dont know why when I am trying to add a table row on my table.It only add beside the first table row instead after the first table row. <div class="panel-body"> <table width="100%" ...
0
votes
1answer
38 views

How set only the text at centre of div if inside there's another div?

Hello i have two div #box-first and the children #first I want to put a text inside #box-first in the middle (at the centre) but don't want to see white space o empty space cause the text. In this ...