Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
jquery
- Page 1
Re: Json response in javascript
Programming
Web Development
3 Weeks Ago
by Biiim
… is what i'm using for AJAX requests - it needs
jQuery
: var data = []; data.var = 'test'; $.ajax({ type: "POST"…(responseData['message']); } } }); I guess the direct answer would be using
jQuery
for `$.parseJSON(msg);`
Re: Show selected option id
Programming
Web Development
3 Weeks Ago
by Biiim
….getElementById('managsel').value);`. I think its .value, I normally use
jQuery
where it is `$('#managsel').val();` Also on this post: >…
Re: Show selected option id
Programming
Web Development
3 Weeks Ago
by Mr.M
Just to indicate I've managed to work around this, and what I'm using is working 100%. There's a reason why it uses the same id's that's because it is dynamically generated and I have almost 5 or 6 GROUPS of classes so I can't use the class grouping on this but was looking for something similar but instead of using classes I wanted to use id's.…
Json response in javascript
Programming
Web Development
3 Weeks Ago
by Mr.M
Hi Dw, I want to get the keys and data of the php json response, heres the response I get {"content":{"1":{"title":"Present","start":"2025,01,29","end":"2025,01,29","backgroundColor":"#f39c12","borderColor":"#f39c12"}}}…
Re: Show selected option id
Programming
Web Development
3 Weeks Ago
by Biiim
> Just to indicate I've managed to work around this, and what I'm using is working 100%. > > There's a reason why it uses the same id's that's because it is dynamically generated and I have almost 5 or 6 GROUPS of classes so I can't use the class grouping on this but was looking for something similar but instead of using classes I …
Re: Json response in javascript
Programming
Web Development
3 Weeks Ago
by Mr.M
I also have to mention that the response will also be a multi-array
Re: Json response in javascript
Programming
Web Development
2 Weeks Ago
by Langflow
Hi! You can decode the JSON response in PHP by using json_decode($response, true); to get an associative array and then get the keys by using array_keys($data) and access values as needed!
Re: Json response in javascript
Programming
Web Development
2 Weeks Ago
by Dani
Sorry, I'm confused. Do you want to decode the JSON in PHP or in Javascript?
Re: Json response in javascript
Programming
Web Development
2 Weeks Ago
by Mr.M
@Dani, I wanted to decode it, basically @BIIM has provided something that helped me out, the problem now is that I've seen that I am facing an issue with how the data is, so now I want the end data to be like this Content{events[{title: myeventtitleFromDatabase, start: myeventstartDateFromdatabase, end: endDateFromDatabase}]} …
Re: Json response in javascript
Programming
Web Development
2 Weeks Ago
by Biiim
Should be events: responseData['content'] And rdata is being made as an array of objects (should be same as the previous, but responseData might be an object of objects) so to use rdata it definitely would be: events: rdata A dream to get sanity would be to do `console.log(responseData);` to see exactly what you've got. And keep…
Re: Json response in javascript
Programming
Web Development
2 Weeks Ago
by Dani
If Biim had provided a working solution, I’ll mark this question as solved.
CSS / JavaScript (jQuery)... enable/disable scroll on popup
Programming
Web Development
1 Month Ago
by PsychicTide
…('height', '100vh');
jQuery
('body').css('overflow-y', 'hidden');
jQuery
('body').css('position', 'fixed');
jQuery
('body').css('top', '-
jQuery
{window.scrollY}px');
jQuery
('body').css('padding…
Re: CSS / JavaScript (jQuery)... enable/disable scroll on popup
Programming
Web Development
1 Month Ago
by PsychicTide
… JS for clicking a thumbnail...
jQuery
('.see_CB_wrap').click(function(){
jQuery
('.CB_wrap_background').toggle();
jQuery
('.CB_wrap_table').css('overflow-y', 'scroll');
jQuery
('.CB_wrap_table').css('height', '100vh'); const…
Re: CSS / JavaScript (jQuery)... enable/disable scroll on popup
Programming
Web Development
1 Month Ago
by Dani
Glad you figured it out, and sorry I wasn't around earlier in the week to help out. DaniWeb has used
jQuery
for a very, very long time now, so I'm pretty good at it (or so I think).
Re: What is your main tool for building website?
Programming
Web Development
2 Months Ago
by Dani
… framework with Sass. I’m also old school and use
jQuery
, and I build a custom version of that as well…
Re: Google Maps-checkbox php mysql query to display selected fields
Programming
Web Development
1 Month Ago
by hostbet
To display markers dynamically on a Google map based on selected area codes and a price range, you can use checkboxes for area codes and a dropdown for price selection. When the user selects filters, an AJAX request is sent to the server (e.g., fetchMarkers.php), which queries the database and returns the results in JSON format. The JavaScript then…
Show selected option id
Programming
Web Development
1 Month Ago
by Mr.M
Hi DW, I'm trying to get selected option id, the problem with my code is that it is only showing or returning the id of the first select only even if I click other options it doesn't return them. Heres my code var xid = $('#managsel option:selected').attr('id'); alert("The id is: " + xid); Here is my select option …
Re: Show selected option id
Programming
Web Development
1 Month Ago
by ohmyposh
The code listens for a change event on a <select> element and displays the value (ID) of the selected option in a paragraph. It updates dynamically when the user selects a different option.
Re: Show selected option id
Programming
Web Development
1 Month Ago
by Mr.M
What I mean is that I have a table that is dynamically generated with and each record generate the same select as you can see above. Now the problem is that the code only work with the first table record select, from the table.
Re: Show selected option id
Programming
Web Development
1 Month Ago
by Mr.M
I have many select with the same id and I need to get their options id when that particular select is changed. The code that I have only work or gets one select and does not work on the rest of the selects except the first one. I've also tried using a query select all but that doesn't even work with the first one as well.
Re: Show selected option id
Programming
Web Development
1 Month Ago
by Mr.M
I've managed to use an alternative, instead of this approach I've changed and used a function call `onChange="Myfunction(this);"` and I then reference to the dom element returned to get it option selected id. It is now working accordingly.
Re: Show selected option id
Programming
Web Development
1 Month Ago
by gediminas.bukauskas.7
Multi-select would have multiple attribute <select ... multiple>. An example of retrieving all selected values is provided on site "https://stackoverflow.com/questions/5866169/how-to-get-all-selected-values-of-a-multiple-select-box". Read answer #85.
Re: Show selected option id
Programming
Web Development
1 Month Ago
by Amonza
I understand that the original poster has marked this as solved. However, I will leave this here as it provides a more fexible and decoupled method to achieve the desired outcome. const selectElement = document.getElementById('managsel'); selectElement.addEventListener('change', function() { const xId = this.options[this.…
Jquery slideshow fail.
Programming
Web Development
14 Years Ago
by minimogul
jquery
slideshow works in dream weaver but doesn't …/tutorials/javascript_tutorial/create-a-slick-and-accessible-slideshow-using-
jquery
/"]http://sixrevisions.com/tutorials/javascript_tutorial/create-a-slick-…and-accessible-slideshow-using-
jquery
/[/URL]. I took out the background and changed the…
Jquery .not() checkbox - Help please!
Programming
Web Development
13 Years Ago
by rom.
Jquery
's .not() and :not doesn't seem to work in …;script type="text/javascript" src="http://code.
jquery
.com/
jquery
-latest.min.js"></script> <…
jQuery Ajax/PHP call problem
Programming
Web Development
13 Years Ago
by elbeato
jQuery
issue here. After calling some ajax, I'm having a …
jquery in place of AJAX
Programming
Web Development
11 Years Ago
by waqar100
jquery
can work in place of ajax,tell me the answer how? someone asked me
Jquery resizable on rotated div element
Programming
Web Development
11 Years Ago
by Mallika_P
Jquery
resizable handles does not working correctly after rotating the div, i changed the handles after the rotation of div into correct position., but when resizing the div it resize opposite direction, for eg we move handle se means the position nw want be fixed but it moves away. Please help me to recover the answer. Thanks
Re: Jquery resizable on rotated div element
Programming
Web Development
11 Years Ago
by LastMitch
>
Jquery
resizable handles does not working correctly after rotating the div, …
Jquery
Programming
Web Development
7 Years Ago
by davy_yg
… ''; if (domainoption == 'incart') var sld =
jQuery
("#" + domainoption + "sld option:selected&… () {
jQuery
("#domainresults").slideUp();
jQuery
(".domainreginput").hide();
jQuery
("#domain" +
jQuery
(this).val()).…
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Forums
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC