Newest 'jquery' Questions - Stack Overflow

Questions tagged [jquery]

jQuery is a Javascript library, consider also adding the Javascript tag. 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 in question and at least jquery usage-related elements need to be in the question.

-1
votes
1answer
20 views

removing class from clicked image

Fiddle here http://jsfiddle.net/9sd36v1y/6/ $("ul.select li a img").click(function() { var alt = $(this).attr("alt") $("#TipodeEvento").val(alt) // put grey on all in case its a second click ...
0
votes
1answer
14 views

Call link using JQuery Ajax

I've this code below: At this moment when I call the number it calls the href on the same page. What I want is to call the link but without reloading the page and not opening a new tab. The idea ...
0
votes
0answers
7 views

Rails dynamic grouped_collection_select automatically change

I have a form with 1 collection_select and 2 grouped_collection_select. All 3 start out with their include_blank. As I choose the first collection select, the first grouped_collection_select, next ...
0
votes
1answer
14 views

Dynamically populate LI's inside last UL

I want to create something like this, but dynamically: <ul class="list-group list-group-flush"> <li class="list-group-item list-group-item-light"> <...
0
votes
1answer
12 views

Jquery find identifies incorrect element

I've got a list of items that contain the data-attribute "data-issueid" which I'm using jquery to add and remove classes from in order to manage the appearance of the active item, compared to the rest....
0
votes
0answers
8 views

Scale center slide with owl carousel

I'm trying to scale the center slide with custom dimensions. But I don't manage. Can I have some help please ? https://jsfiddle.net/fbpsmu2a/2/ function init_carousel() { $('.slider__wrapper')....
0
votes
0answers
17 views

How does the property work? URL of the AJAX method?

I am updating a system made with PHP, and I just noticed that there are 2 files called iajax.php in different folders. My doubt is that I just found an ajax method that the URL is pointing to one of ...
0
votes
3answers
30 views

How to include a link with onclick in an alert that's not always visible in JavaScript?

I have an alert that shows under some conditions. I want the alert to contain a link and execute some code when that link is clicked. However, I'm getting error "ReferenceError: doTheThing is not ...
0
votes
0answers
11 views

How to Set Session from AJAX Call to Apache Server

How to set session from ReactJS Application (that runs in NodeJS Server) to Apache Server via AJAX Call ? What must i do?? I get this problem when I try to set session to apache from React Application ...
-3
votes
2answers
26 views

Change linear-gradient background on click

Let's assume I have an array with the following colors below, how I make the colors to be alternating when I click on something using jQuery? var colors = { orange: { color1: ...
-1
votes
1answer
20 views

Select by .attr quiz

I want to create a simple quiz. Any word fits into the text field, and if the word is correct, a class is set that changes color. Spent a lot of time. Please help correct the error! var answer = $...
0
votes
0answers
11 views

use a select box with numbers to add fields… then store in a database

I have a form that needs something like this: How Many Full-time employees in your household? <select class="form-control" id="status" name="FulltimeNumber"> <option value="">Please ...
0
votes
1answer
20 views

Make a Change Log table which logs the changes in drop down menu

I want to make a Change log table which show if there's been a change in the drop down menu. For example i am working with a worksheet and i have one select menu Results which has options like ...
-1
votes
0answers
16 views

Can I make a responsive accordion that can break Into smaller accordions [on hold]

I basically need to create an accordion, which would be easy, except each "tab" or heading needs to have 4 different headings that correspond to 4 columns within the content area. That's easy enough ...
-2
votes
0answers
26 views

date and time picker submission

Im new to coding and need help ding an AIO style submission. i tried all kinds and cant find an AIO style thing to do both time and date picking and submission. $("button").click(function() { $(...
-3
votes
2answers
19 views

When Popup Box appear with particular text, Automatically close current tab and open new tab

I have two button button1 button2. I wish to if someone click button1 its will stay same tab. If someone click button2, this time close the current tab and create new tab. Here Sample Code: <!...
0
votes
1answer
20 views

Convert website form to PDF and email to webmaster

I am trying to create a form for my website which once submitted will be converted to PDF and them emailed to myself (webmaster). I appreciate that I cannot complete the action purely with JQuery/...
-2
votes
0answers
15 views

Trying to post cross-origin with CORS but getting error message “Cross-Origin Read Blocking (CORB) blocked cross-origin response”

I am trying to post from my website to another site, and just grab the title from my site (and some other details) and post cross-origin to the other site so that the text box is filled out. ...
0
votes
0answers
8 views

How to display a substring of values returned by SPServices SPAutocomplete function

I'm using SPAutocomplete from SPServices because I have a requirement to make a searchable lookup field rather than an OOTB lookup field (drop down menu), as there is potential for thousands of values ...
0
votes
0answers
8 views

Jquery Cycle Plugin resize error when dragging window from narrow to wide

I'm using JQuery Cycle Plugin for images that are set to 100% width. I found that I get inconsistent results when I load or reload the page at a narrow width, then resize the browser to a wider width. ...
0
votes
1answer
31 views

How to fix 'This page was not found' in Flask Python?

I'm setting a new server in Flask for an API. And a server to render the frontend in Flask also. Ok, so when i make a request to a determine API route i get this strange response 'This page was not ...
-5
votes
4answers
45 views

Reducing object to simple array

I have object of { 0: "United States", 1: "India", 2: "Germany", 3: "Brazil", 4: "Taiwan", 5: "Israel", 6: "United Kingdom" } I just want to make it like using jQuery or Javascript only ["United ...
0
votes
1answer
15 views

Is this the correct format to use onclick function inside a ajax request

I'm trying to call an onclick event. But because of some issue its not working. I'am using following code inside a ajax request in a js file html += "<td>" + mobile + "</td>"; html += "&...
0
votes
0answers
11 views

Rendering and event Handling Issue in Angular UI Calender

In my AngularJS v1.5.x application, I'm developing a calendar using Angular UI Calendar (angular-ui-calendar v1.0.2) module. The calendar exposes certain events like eventClick, eventRender, and so ...
0
votes
0answers
12 views

How to access local files for an Azure WebSite using jquery?

I have deployed an AngularJS application to an Azure App Service and it needs to access a local config.json file prior to bootstrapping. How do I allow Azure App Services to serve the config.json file ...
-1
votes
2answers
55 views

Correct way to call a URL on button click

So, I wrote a Java servlet to get a zip file from the server which works fine when I use a web browser to test it. My URL looks like the following : https://myserver.com/Download/FileServlet?...
0
votes
1answer
25 views

how get array check in datatable with jquery?

hello I have a datatable with the checkbox and a button validate, I want when I click on button validate array lines check display in console array(name, number, address) how to make it help me ...
-1
votes
0answers
41 views

Javascript variable is being incremented twice after one iteration of for loop? [duplicate]

The variable "i" which starts of at a value of 1 is finishing at a value of 2. The loop just runs once however I cannot see where it is being incremented. Here is my code for (var i = 1; i <= ...
0
votes
1answer
19 views

How can i split the id numbers for cart items after increasing quantity

I upgraded this functionality to update the quantity number if i click on the up arrow or down arrow. Before i had a submit button next to the quantity number and it would update. But now, if i have 2 ...
0
votes
0answers
8 views

SEO friendly approach for jQuery.i18n

I'm trying to add support for at least two languages on a website. I have been looking at jQuery.i18n so far. This tutorial provides great instructions on how the project should be set up: https://...
0
votes
4answers
36 views

Unable to get hidden option at the starting of the program

I am looking for a way to hide the div element when the program is started and when in that program i click a button (Change Log) it should show the Div element. I want to hide the div element at ...
0
votes
0answers
21 views

crop image and upload

I am converting a base64 string to image and i want to move the cropped image to an hidden input field to post to the server-side once the use clicks submit but am stuck on how to pass the imgData to ...
-2
votes
1answer
30 views

Cannot get jQuery/JS redirect button to work

I am newish to jQuery. Could someone please tell me what I am doing wrong here. I am trying to unset a cookie and then go to the next page. There are quite a few answers on this subject here and ...
1
vote
2answers
26 views

Auto Trigger DivMenu second li element

I am trying using trigger so many time but it won't work. I wish to auto trigger on menu of second li element. Help me out Please. Here Is My Code Sample: $("document").ready(function() { ...
0
votes
0answers
20 views

Styling my accordion: animation and background

I'm designing an accordion for a website with bootstrap, but I'm stuck for quite some time on styling it. this is the design (not properly organized yet): https://i.stack.imgur.com/anZ4k.png I ...
-1
votes
0answers
11 views

Stop onClick from executing on doubleclicked button

I'm successfuly preventing links from executing onClick (Location:...) twice if doubleclicked: $(document).ready(function(){ $(\'a\').on(\'click\', function(e){ var $link = $(e.target); ...
0
votes
0answers
8 views

How to scroll to bottom of kendo list view control

I am building an application where I need to show the most recent item to the bottom of the kendo listview control and therefore the scroll should be at the bottom position. I tried the following ...
0
votes
2answers
33 views

How to close a bootstrap modal popup after downloading a file

I have a popup that uses bootstrap modal. The popup allows the user to either download a file or cancel. What I want to do is close the popup once the user clicks on the 'Download' button (and the ...
0
votes
0answers
18 views

Print PDF from embed element in Chrome browser

I have a web page with PDF and I need to open a print preview dialog from javascript in Chrome browser. Basically I need to do like a click on print button in Chrome's PDF viewer. PDF is displayed in ...
0
votes
2answers
42 views

Assign Ajax Callback function value to a javascript variable

I have a function called getData which makes an ajax request. I want to use this ajax request result on my form submission for validation along with other validation. Since ajax is asynchronous i am ...
0
votes
1answer
20 views

How to use this slider multiple times in one page jQuery Fix

I want to reuse this slider multiple times but currently, jQuery that makes it work it works only for one so other sliders next and prev and dots doesn't work because they share the same id I don't ...
0
votes
1answer
28 views

Object of objects always returning undefined with $.each

Perhaps something silly, but I have this status JS object of objects (obtained with console.log(status)): {1: {…}, 2: {…}, 10: {…}} 1: error: true __proto__: Object 2: validated: false ...
0
votes
2answers
15 views

How can I disable all input, select, textarea inside titlediv_1274837 div

I have a function which should make all input, select, textarea inside titlediv_1274837 div disable but it is not working when I run the function. I tried single jquery statement and I tried each loop ...
0
votes
0answers
23 views

Jquery debug ajax requests remote submit

So I want to be able to submit a debug report back to the server if the user encounters any issues (maybe they will click on a button or something). One approach I can envision for this is just log ...
0
votes
1answer
19 views

CORS error while loading files from the same domain

I'm working on website http://www.fsvelicka.cz. I need to load a content of an HTML file to an element. I have an element and I'm loading the content with $('.about-us-first-col').load("about_us/desc/...
0
votes
0answers
23 views

Encountering 2 outputs combined in single input

I'm working on a tuition calculator for students and updating it to reflect the current year, in changing the year, every time the #variable option is selected to Variable (inherited code, not my ...
4
votes
1answer
53 views

Problem to overlay content when hamburger icon is pressed on mobile

I want my navbar to cover the whole screen when the hamburger menu is pressed on smaller screens. I added the .pushclass (see the jquery and css) to fire when the .navbar-toggle-icon is pushed. for ...
0
votes
1answer
14 views

How to upload file by kartik-v/bootstrap-fileinput without “upload” button

I use YII2 + /kartik-v/bootstrap-fileinput plugin. I need to upload file when user just drop it into upload input. Make it by ajax request. When I set "showUpload" option to false, and set "uploadUrl" ...
-1
votes
0answers
9 views

Javascript vertical scroll sites - pausing scroll, engaging animation steps for forward and reversal by scroll

I am about to embark on a project that requires some complicated vertical scrolls aspects. In terms of learning how to build these components are there any tutorials or useful code snippets/methods to ...
0
votes
1answer
15 views

html2xlsx - How to select table with jQuery

I'm using html2xlsx plugin to export a html table to xlsx file. It works fine with the code included in the link above (shortened): htmlTo(` <style type="text/css"> table td { color:...