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 am drawing a table with jqgrid.
I want to change the background color and text color of the header.
I am trying to change the css by applying a class to the header, how can I apply it?
I want it to ...
I'm building an app and have no issues with my get or post routes to work, but I'm hung up on this delete route.
I've set up my front end javaScript like this. The first function receives the data and ...
Currently I'm trying to create a page where my database is updated upon a drop event. More specifically, I have a page with drag-drop capabilities, what I need is anytime I drag and drop a particular ...
I am working on a messaging app and I am importing the conversation into the page with AJAX, so I am trying to find a way to have the div scrolled to the very bottom when the page loads. It is ...
I have problem with hover option..
This is what I need (text in circle)
Now, I got same look using csswrap
After, I put some jQuery to add links all spans with same class
All of that is fine, except ...
Im trying to move from classic loading datatable to server side with the Ajax. Im struggling to 'delete' emails with this code bellow. After the click is not deleting any subscribers or emails. It ...
i wanted to test out something before i add it to my project , a twitter like mention user function from GitHub
https://github.com/jakiestfu/Mention.js
now the problem is the way his demo works is he ...
I want to use Googles Suggest Autocomplete for a basic form <input type="text> instead of a DIV acting as a <input type="text>
Example:
HTML
<form action="https://google....
asked 4 hours ago
CrustyStain
9511 gold badge11 silver badge88 bronze badges
I have some some description and want get its in my pop-up window. Then I click on div with type button I must get value in pop-up
<div class="content-wrapper bg-white">
<!-- ...
I´m trying to display a fullscreen menu with toggleClass animated with jquery. I´m able to do it, but I would like to to have the same effect forwardding the animation closing the menu. Any approach ...
I would like to load local file data & populate that data while page loads.
I tried to use this jquery function
<script type="text/javascript">
jQuery(document).ready(function ($...
asked 5 hours ago
katch
50822 silver badges1919 bronze badges
When I first click on a box it enlarges and when I click it again it shrinks back to its original size. This applies for all the boxes. But when I click on a box that has gone through these two events ...
(I have no experience or knowledge about javascript or jQuery) I was making a navbar for my website
and it was working fine on my laptop so I decided to check it on my phone too. When I opened my ...
When I change the input field values manually without the ajax buttons or the code detects the change and updates the data without any problem.
The only problem that I present is with the increase and ...
I would like to get row count by data attribute, for example, data-engine with ami match 3, what method could possible to get count or length?
Note: the data-engine value as ami come from a smarty ...
asked 7 hours ago
Smaller
9911 silver badge1010 bronze badges
I am trying to add an owl carousel in my project in Laravel 8, but it isn't working properly, it is displaying large pictures vertically, in columns, full screen width. I've been stuck for a while now....
I have two radio button like:
Field_One
Field_Two
When I check Field_One it will show First_Name, Last_Name field but when I check Field_Two it will show reference_id field.
But one thing if this ...
asked 8 hours ago
shawn
75411 gold badge99 silver badges3030 bronze badges
here is my html code where i have a form taking some input from the user and the user uploading a file:
<div class="modal fade" id="CreateCompanyModal">
<div class="...
I feel like there must be a simple, searchable answer to this, but try as I might, I am unable to find the solution to this simple problem. I am new to Promises and callbacks, so I am probably using ...
I'm working on a woocommerce website, I inserted my cart page in a tab that opens on the product page with some gsap animation
if ($(this).hasClass("menu-open")) {
$(this).toggleClass(&...
I'm trying to book an appointement using iMacros , and I don't know how to make it stop when the appointement is available so I can fill the form!
I hope you can help me!
here is the website: https://...
I have worked with responsive tables with search.
But I want first column fixed.
I saw this example in bootstrap 4. Here is the link:
Bootstrap4 Responsive Table - Fixed first column
But in this ...
asked 9 hours ago
sifr_dot_in
1,61322 gold badges2222 silver badges2828 bronze badges
Being a newbie in asp and jquery, I have a question regarding how data is updated from the controller to the view.
In my controller I change the value of a boolean to true; update the model and return ...
My HTML code is not working for some reason. My HTML Consist's of:
<input type="file" id="upload" accept=".mp4,.webm, .mov"/><br>
<video id="video&...
pls place cursor at the and of lorem ipsum
then hit Enter - new line
then write - dolor
result in divb is - <div>lorem ipsum</div><div>dolor</div>
how to get the following in ...
asked 10 hours ago
qadenza
8,1781818 gold badges5454 silver badges9696 bronze badges
I used cheerio for the first time today
This is a simplified version of the html source I want.
<div id="country-table">
<!-- div duplicate cause style -->
<div>
&...
I am trying to use jsPDF to download a PDF version of my website. I am getting this error jQuery.Deferred exception: r[o] is undefined. I think it has to do with "var source = $("#content&...
i need help on the web app form. im faceing issue how to show the value real time on webapp form. i right code.gs but im unbale to create javascript for run the function interval level.
please help me ...
I wrote logic to read the txt file on every 30 mins from Ajax script(Separate ASP) . This ASP is included on multiple ASP pages by using "Include" ..
this html code contains the below logic.....
I'm creating a project where when you click on an image, a pin should be placed on that exact location. It needs to work on different screen sizes/browsers etc.
I've sampled some code from other ...
I have a piece of code and there are multiple if-else statements. I have tried using PHPMailer in each of the if-else statements repeatedly. But I get an error message that -
Cannot redeclare ...
As a part of my MVC web application, I need to call a controller method when a browser or a browser tab is closed. I am using the Javascript onbeforeunload event for calling the method.
window....
asked 13 hours ago
Mako
1,39522 gold badges1717 silver badges3232 bronze badges
I have created a form in which the user enters the number of fields he wants to create (for example, he enters the number 20 and then the system displays 20 fields)
Then I would like each field to ...
My project has the following structure:
--dist
--plugins
--import_json.js
--index.html
--json_file.md
--import_json.js
var forum_data = null;
var data = null;
$(function () {
$('input[type=...
I'm trying to load google results in side a div in same page. I'm using the code below,
<style>
#result-here {
width: 400px;
height: 400px;
border: 2px solid #000;
}
</style&...
I have update array function I want to simplify this code if possible.
This update function is about updating and comparing the value of array.
The data will be compared inside the fruit_temp
example ...
I have a fairly simple slideshow written in jquery that fades between div elements. In the code below it's set to fade between slides every 5 seconds. Is there a way I can modify this so I can set ...
asked 13 hours ago
Teague
3111 silver badge77 bronze badges
I have populated a table from database using php and updating its values using js(ajax jquery)
Record updates perfectly, I am calling page reload function to get updated values but reload() function ...
I am looking for a solution once click on Submit button the all the dynamic accordion items should be send to controller.
I have these divs (links) that can be clicked on.
I want to change a dropdown selection accordingly.
So if it's clicked on select2, it would change the dropdown value to 666
If select3, it would ...
I have working requests code in python and need it in ajax
var jsonData = {"x":"y"};
$.ajax({
url: url,
type: 'POST',
data: jsonData,
//dataType: "JSON",
...
I want something like from animations.css animate__lightSpeedInRight when I refresh a page or scroll to a section and get a nice animation then.
I use Sass and dont know what to use. Animations.css , ...
clicking on the button I need to remove the following css setting from #tg:
.wrap div{
text-align:justify;
text-align-last:left;
}
and add a acenter class - i.e. making it aligned center
#tgx.should ...
asked 16 hours ago
qadenza
8,1781818 gold badges5454 silver badges9696 bronze badges
i have list button modal as:
<div class="modal_list">
<button class="btn_modal_1" onclick="" data-toggle="modal" data-target="#btn1">Button 1</button>
...
<button class="...
I have video channel that I want to display all the the related video in that page. I displayed it from left to the right. But now I got problem with the same data appear twice left and right in one ...
The jQuery below detects the word first and third in any <p> text and adds a yellow or red background to it.
$(document).ready(function(){
$("p:contains(first)").css("background-...
asked 18 hours ago
Elaine Byene
3,69077 gold badges4141 silver badges8080 bronze badges
Hello! And thank you for taking the time in reading this, and apologies that it is this long. TL;DR at the bottom.
What I am trying to accomplish:
What I wish to accomplish is to be able to change ...
I am trying to open up a modal upon passing the parameter "del" with value.
Example URL: .../notification.php?del=32
But it is not working. Can you guys help me to run it?
I have included ...
I have an HTML table and in one of its cells, there is a button to Accept food orders. That data is then checked by another PHP page if it's ok or not and then the data is updated accordingly. Below ...
I'm using DataTables (https://datatables.net)
When trying the mobile version of the website the jquery will stop working, But when using the desktop version everything works just fine.
<link rel=&...