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.
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, ...
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 ...
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 ...
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" )....
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")....
(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.
...
My model: xyz.php
public $fillable = [
'name',
'phone',
'status',
];
protected $casts = [
'id' => 'integer',
'phone' => 'string',
'...
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 ...
asked 47 mins ago
KUMAR
9911 silver badge1111 bronze badges
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>
</...
asked 48 mins ago
RoboPHP
26911 silver badge66 bronze badges
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 ...
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(); // ...
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 ...
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 ...
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 ...
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 ...
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
...
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.
...
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?
$(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....
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 ...
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 ...
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 ...
asked 2 hours ago
MrHize
10111 silver badge77 bronze badges
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 ...
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 ...
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....
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, ...
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)...
asked 3 hours ago
Nurs D
1111 silver badge33 bronze badges
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 ...
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
$...
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 ...
asked 4 hours ago
Daleman
36433 silver badges1010 bronze badges
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);
...
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 ...
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 ...
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?
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) {...
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 =...
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 ...
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 ...
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. ...
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 ...
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 ...
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 ...
asked 8 hours ago
MrHize
10111 silver badge77 bronze badges
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 ...
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 ...
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 ...
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({
...
asked 8 hours ago
RoboPHP
26911 silver badge66 bronze badges
I am trying to create a curved slider and it automatically moves with jquery like this:
enter image description here
Thanks <3!
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 ...
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
...
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
$...