Reddit » jQuery
121 FOLLOWERS
News, articles, plugins, and tutorials for jQuery, the world's most popular Javascript library! Covering jQuery Core, jQuery UI, jQuery Mobile, and other related projects.
Reddit » jQuery
3d ago
I must be having a brain fart moment.
Imagine I have this JSON:
{ "data": [ { "user_id": 2, "username": "PoopPantz", "firstname": "Mr", "lastname": "Loser", etc } ] }
and this as the jQuery call
$('#addeditmodal').on('show.bs.modal', function(event) {
var idn = $( '#addedit' ).data( 'id' );
if ( idn == null) return;
$.ajax({
type: 'POST',
dataType: 'json',
url: 'ajax.php?action=getListUsers',
data: { id : idn },
success: function(response){
$('#UserName').attr( 'value', response.data.username );
},
error: function (xhr, textStatus, errorThrown) {
}
});
});
All I get is undefined for response ..read more
Reddit » jQuery
1w ago
get or post in jquery?
submitted by /u/savant78
[visit reddit] [comments ..read more
Reddit » jQuery
1w ago
I am developing a website for school and we need to use vue js and jQuery. So I have tried to make nest two api calls since I am using the data of the first one to call the second one, and it returns an error 404 specifically on the second api. I have tried separating the api calls and have them be different buttons and everything works perfectly fine. I want to combine them in order to only have to use one button but I do not understand why I keep getting the error only in that specific situation.
submitted by /u/RubanS79
[visit reddit] [comments ..read more
Reddit » jQuery
2w ago
I'm developing a website for school and I need to use vanilla jQuery, PHP and Bootstrap but I need help with the navigation (I've never used jQuery or PHP until now). In the main layout I have a navbar with a bunch of sections but I want to replace the content of the main div without reloading the page, I've done routing in React and Svelte but I'm finding very different approaches for what I'm trying to achieve.
https://preview.redd.it/3i9ndsmux5sc1.png?width=1032&format=png&auto=webp&s=dfe39591174cc1b71bc5d53133154d1a7a43417a
submitted by /u/Llauses1
[visit reddit] [comments ..read more
Reddit » jQuery
2w ago
I am new to jQuery. Using it and Bootstrap and amazed at what I was able to put together very quickly with limited knowledge.
I have a site running on IIS, index.html is in docroot and has a navbar and container. On Load, jQuery loads a file called pipeline.html into the container. When a user clicks a link on the navbar called Clients, a page called Clients.html is loaded in the container (replacing pipeline.html). Clients.html has a button that opens a modal and another container of its own. When a user clicks the button and the modal opens, the user can enter data in the modal. When the us ..read more
Reddit » jQuery
3w ago
Sooo, I published my first npm package: https://npmjs.com/package/@uzbeki/jquery-gantt-chart
Backstory: I needed a jqeury plugin for creating a gantt chart. The one I found was old and laggy, not updated in a while. So I forked it, refactored. It turned out nice (at least what I needed it to be).
What do you think? Roasts, suggestions are welcome.
submitted by /u/Striking_Peach_5513
[visit reddit] [comments ..read more
Reddit » jQuery
3w ago
I can see the response from the server in 8econds but the page does not get it.
What am I doing wrong here ?
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Skills</title> <style> p { color: red; margin: 5px; cursor: pointer; } p:hover { background: yellow; } </style> <script src="https://code.jquery.com/jquery-3.7.0.js"></script> </head> <body> <h1>Skills Mapping</h1> <div id="jd">Job Description:</div><br> <textarea name="jobdesc" id='jobdesc' cols="40" rows="5">WAF,DB,SQ ..read more