JSON data for select box selected values
Reddit » jQuery
by /u/ThePalsyP
5d ago
Me again! I have this example JSON [{"role_id":4,"perm_mod":"ACC","perm_id":6},{"role_id":4,"perm_mod":"USR","perm_id":3}] I have a multi-select box on my form (bootstrap modal) with values like "3|USR, "6|ACC", etc on a form and want to loop the JSON array to add a SELECTED property to the select value(s). This is the code I think may "work" $.each( JSON.parse( dat.data[0].permissions), function() { $.each(this, function(name, value) { if ( name == 'role_id' ) return; // role id not required for this purpose console.log(\${name} = ${value}`);});});` This gives me the keys/values, however, I ..read more
Visit website
Anyone still use jquery for new projects?
Reddit » jQuery
by /u/RXBarbatos
1w ago
submitted by /u/RXBarbatos [visit reddit] [comments ..read more
Visit website
GitHub - evoluteur/evolutility-ui-jquery: Framework to build CRUD web applications with models rather than code.
Reddit » jQuery
by /u/evoluteur
1w ago
submitted by /u/evoluteur [visit reddit] [comments ..read more
Visit website
Retrieving JSON data via AJAX call
Reddit » jQuery
by /u/ThePalsyP
1w 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
Visit website
When using Jquery how does Javascript actually handle the GET or POST? I mean I understand that in an HTML file the Javascript sends a get or post with $.get( or, $.post(, but, the file that receives it, how does that work? I mean how does it actually handle the get or post and process it?
Reddit » jQuery
by /u/savant78
2w ago
get or post in jquery? submitted by /u/savant78 [visit reddit] [comments ..read more
Visit website
Nested API call returns error
Reddit » jQuery
by /u/RubanS79
2w 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
Visit website
Best way to make a single page application with jQuery and PHP?
Reddit » jQuery
by /u/Llauses1
3w 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
Visit website
Unable to get contents of html file and display in web page div using $.get()
Reddit » jQuery
by /u/odaat2004
3w 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
Visit website
First time publishing a jqeury plugin.
Reddit » jQuery
by /u/Striking_Peach_5513
1M 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
Visit website
Can get the response with jquery
Reddit » jQuery
by /u/LivingOther
1M 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
Visit website

Follow Reddit » jQuery on FeedSpot

Continue with Google
Continue with Apple
OR