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.

Filter by
Sorted by
Tagged with
0
votes
1answer
9 views

jQuery: font-variation-settings based on cursor position

I would like to transform a variable font based on the position of the cursor. If the cursor has a x position of 0px, the wght should be 200, if the cusor position is at the right border of the page, ...
0
votes
1answer
14 views

Jquery Regex - check one or multiple comma separated values (12 hex characters)

I currently have a textbox that can take one or multiple (comma separated) values. var textBox = $('#testValues').val().split(","); I'm trying to add regex validation that when users enter one or ...
0
votes
0answers
6 views

Re: process.env.PORT || '3000' is underlined in red

I am following the "MySQL Node Express API - Walkthrough" on YouTube and have the following error and don't know how to solve it. Not sure if I haven't added an extension that is needed and this is ...
0
votes
0answers
7 views

jQuery Autocomplete results limit and utf8 problem - two response data

I use two different arrangements. I limit the result list to "10". I am using a code for utf8 character error. how can i use both at the same time? Two source not work. $( "#countries" )....
0
votes
0answers
6 views

How to associate two different inputs collected in different times, and recall back them when it is needed?

I want to bind two different inputs in the form of integers, collected on a button click event, and want to call back them! But I am stuck, take a look at my code: $(function (){ var j; $("#first")....
0
votes
0answers
9 views

I need to add a time from the date

(3/23/2020 12:46:00 AM) Please find the above date and time i have to + 11:30 hr in the date mentioned above. Then date format will be MM/DD/YYYY How this will do in IIF( Condition in MS Access. ...
0
votes
0answers
12 views

When i Submit model data, i get <p> tag in response

My model: xyz.php public $fillable = [ 'name', 'phone', 'status', ]; protected $casts = [ 'id' => 'integer', 'phone' => 'string', '...
0
votes
1answer
16 views

How to get value of ul li made dropdown using php in URL by get method

I have created a form with multiple dropdown (by ul li) and after selecting drop down items i have to search the results by clicking search button to search page. I am passing the selected data to ...
1
vote
2answers
24 views

How to get selected li value - jquery

I have an array list as shown below var items = ['Iphones', 'Samsung', 'Huawei'] which i append to a li as below. HTML & JS <div id="host"> <div class="data_box"></div> </...
0
votes
0answers
14 views

Navegation menu is not appring in react

Actually i m applying this them in react https://colorlib.com/preview/#personalportfolio i did imported all the css and js file in my index.html and made Header.js component its working as in theme ...
0
votes
1answer
11 views

How to execute function after rendering except “setTimeout()”

Environment Jquery2.0.3 What I want to do (like chatapp messanger) select image file and display as preview ↓ submit ↓ delete preview place Code async function send() { sendMessage(); // ...
0
votes
0answers
17 views

Input field inserted into JSON

I am trying to grab text input from a form and insert the string into JSON data for a POST request. All of the static text should be replaced with inputs from my form. The only one I have tested is ...
0
votes
2answers
21 views

form submit button doesn't work after onsubmit return false

before submit i'm checking 2 fields if one of two fields is checked i return true else false. the problem is that if false is return , ido check one of two checkboxes but the submit button doesn't ...
-2
votes
1answer
20 views

unexpected string error in javascript when trying to use ajax

i am creating an ajax method using jquery to send data to the server without reload and to achieve a few user friendly outcomes. but i keep getting unexpected string when i try to pass my variables ...
0
votes
0answers
9 views

Remove image preview and replace with filename

I am trying to add jquery multi file upload to my site but tbh I am really bad in jQuery, so I need your help. I would like to remove image preview and replace that with Filename. I've created ...
-2
votes
0answers
16 views

In electron relative paths not working in html file?

I hope you all are safe. I am not able to set path of CSS and other file in my app's login screen. please check the screenshots. my project folder structure. Error i am getting project's main file ...
0
votes
1answer
21 views

How can I call a function when page loads with jQuery?

I want to trigger a JavaScript function after the page loads all the elements and I have to echo some HTTP request data into the page somewhere and use JavaScript to get the information from the DOM. ...
-3
votes
0answers
18 views

How to create a reply system like 4chan in JavaScript? [closed]

When you click or hover on the reply id >>12342# it shows the content of that id in popup. How to create it using JavaScript?
-2
votes
0answers
17 views

addEventListener on Array [closed]

$(document).ready(function() { var getCl = document.getElementsByClassName("egg"); var egg; for (var i = 0; i < 3; i++) { for (var j = 0; j < 8; j++) { egg = document....
0
votes
0answers
8 views

How to display div with position in jsPDF?

I am using jsPDF to save my main div as pdf. Main div contains some child div with position. So when jsPDF run and create new pdf then it's now displaying div properly. It's showing div in ascending ...
0
votes
0answers
7 views

Modal popup containing Recaptcha v2 can't disappear Vue.js

I have a project, on which I would like to improve its Login screen (The program is called Login.vue). I want to add a modal popup which consists of Recaptcha v2 (reference: How to add external JS ...
0
votes
1answer
20 views

How do I use Django queryset in jQuery/javascript

I am trying to implement Django queryset in jQuery/javascript. I was able to get the list of all users but i could not get the users profile picture. Username display, but users image do not display ...
1
vote
1answer
18 views

To Control SVG CSS Based Animation Using Jquery

I wanted to sync the svg animation altogether, getting stuck with initializing multiple variables, and many of the groups have both paths as well as lines, and I want to make it follow according to ...
0
votes
1answer
11 views

I'm Using JQuery to check if a inputed value (a postcode) matches, but need to display some text if it doesn't

I have a JQuery script to check if a value (a postcode) typed into an input field matches any of the values I have. At the moment when a value is typed into the input field, it changes the visibility ...
0
votes
0answers
18 views

Javascript not summing variables incorrectly [duplicate]

I am trying to sum two variables as shown below using javascript on my website, but its calculating it incorrectly & giving out too many digits after the decimal point. var a1 = 0.72; var a2 = 4....
0
votes
1answer
39 views

How can I compare data from two links with Ajax?

I want to compare and print genre_ids in the first link and id in the other link. Sample: genre_ids: [ 18, 878, ] { id: 18, name: "Drama", }, { id: 878, name: "Science Fiction", } Result: Drama, ...
-1
votes
1answer
14 views

How to put an object's property to a href in AJAX?

I have a small question. How to put an object's property to href. I marked with comment the line success: function (listOfTags) { let tagData = ''; $.each(listOfTags, function (i, tag)...
0
votes
3answers
42 views

Increment a random number with a button?

I'm new to coding and I have the following problem: I created a random number and I have it in a p tag which has a class, then I tried to increment this number by clicking on a button. This is my code ...
0
votes
1answer
12 views

How to customize submitHandler() in jQuery validation?

I want to validate a form using jQuery validate and then inside submitHandler() I want to do some stuff. But it always refreshes the page even after using event.preventDefault(). Here is my code $...
0
votes
0answers
7 views

Reload datatable after dropdown value change

I have a datatable and a dropdown. I want to change the datatable after dropdown value change. First of all, I tried the simplest trial & error by getting return value from controller after ...
-1
votes
1answer
27 views

Can we load external Javascript inside a specific function

I am curious to know that if it is possible to load some external javascript code from a url to some function. Suppose we are having a function like this, function example(){ var x = 10; alert(x); ...
0
votes
0answers
8 views

How to append view-bag to the down-down list on ajax success event?

I have a toggle checkbox(Is_Totalizer) when the checkbox is on then I send an ajax call to the method IsTotalizer where I am assigning two lists to ViewBag and now I want to return these tow viewBags ...
0
votes
0answers
15 views

Add function to jquery carousel indicating interval time

I have placed a progress bar at the top of a slide show that uses the jquery bootstrap carousel object version 4.5.0 to slide the images. What I want to achieve is to bind a custom javascript ...
-1
votes
0answers
19 views

How to get the file path from the user using the file input [closed]

I've been working on a web site that needs to get the file path from a file input tag. Any suggestions on how to do it?
0
votes
2answers
19 views

How to download a file after AJAX call

How can I automatically download a file after an AJAX call? Now my AJAX call is redirecting me to the resource, but not downloading the file. this is my AJAX call: $('.download').click(function (e) {...
0
votes
1answer
15 views

How to reopen a closed click event in jQuery without reload?

I am trying to reopen a closed click event using jQuery but I don't want to refresh my page for it. For better understanding,please take a look at what I really want: $(function (){ Var i = 0; Var j =...
0
votes
0answers
13 views

Cannot read property 'createDocumentFragment' of undefined in vue-jquery

i am using jquery with nuxt js. there is my imported plugins import Vue from 'vue'; import jn from 'vue-jquery'; import $ from 'jquery'; Vue.use(jn) and this is my function collect(){ var ...
1
vote
0answers
18 views

How to add to a table header dynamic datarow that will work with pagination?

I'm trying to implement table with dynamic data and pagination, it works more or less good but i do not know how to implement in header of my table dynamic data. in my case it will should be days of ...
0
votes
1answer
12 views

JQuery datepicker not sending selected value by posting in my asp.Net core application

Please forgive me if I am asking a previously asked question. But I get stacked in this problem. Please help me. I am using jQuery datepicker in my project. I can see the datepicker in browser well. ...
2
votes
1answer
32 views

How to make li active after page loads

I am having a list which is reused in other webpage so i included it in one file and require the same in other webpage where required I want to make them active for example if MY RESUME IS CLICKED ...
0
votes
1answer
29 views

PHP dynamic options in select inside html

I have categories and sub-category taken from API json file, the API returns category objects with "parent" attribute, main category objects have parent attribute equals to 0, and the sub-category ...
0
votes
0answers
22 views

Autocomplete with username and image

I am using autocomplete to dropdown username and user profile picture, i am getting the username correctly but profile picture is showing default images instead of the user profile picture. I do not ...
-1
votes
0answers
8 views

Possible to attach/embed image with a url query param? So that when image is clicked a new page opens with the new parameter added to the queryURL

Getting images and names of different locations with an API. I've made the image link up to a blank template html file. I want to be able to click on the image and be redirected the the blank html ...
1
vote
1answer
26 views

How to make li active when the code of the list is reusable in other file

I am having a list which is reused in other webpage so i included it in one file and require the same in other webpage where required I want to make them active for example if MY RESUME IS CLICKED ...
0
votes
0answers
15 views

Copy the contents of a div into another div [duplicate]

I want to copy the data from one div to another div by using JS . $(".second_div").html($(".first_div").html()) It will be done but JS code that is written in the first_div , would not be copied in ...
3
votes
2answers
47 views

Displaying results on new line - Javascript

I have an ajax request below that successfully returns the results. The results return is like the below Results structure This is the ajax request that returns the structure above. File $.ajax({ ...
-1
votes
0answers
14 views

How to create a curved slider and the text changes with numbers? [closed]

I am trying to create a curved slider and it automatically moves with jquery like this: enter image description here Thanks <3!
-1
votes
0answers
13 views

AJAX Call Inside/From A PHP File That Is Already Called By AJAX

My question is a little confusing than others as I want to first call a PHP file from my HTML/JS file using AJAX and inside that PHP file, it is calling another PHP file like AJAX so that when I hit ...
0
votes
0answers
10 views

Database Query with Datediff, CASE and BETWEEN

I am doing some database query. I am not good at it. Please check my code. I think there is something wrong after THEN WHEN bucket= 90 . Can anyone please help me. Thank you. WHEN [@bucket] = 0 ...
0
votes
0answers
8 views

how to show image by clicking view details from database in boostrap model through ajax jquery in codeignter

Upto this code i have got name,decription,etc but image not shown enter image description here $('.view_detail').click(function(){ var id = $(this).attr('id'); //get the attribute value $...

1
2 3 4 5
19846