I have a navigation which is listed dynamically with PHP. The html : The highlighted the tags are listed dynamically I have a JS script, when we click on the navbar element then we add .selected class to the tag. When the page is loaded the first tag has .selected class. I need a JS code to find the data-prop
Tag: javascript
How to loop so I can separate 2 values? [closed]
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed last year. Improve this question I’m trying to make an inventory system as part for my e-commerce project so I need to get the price per product. The problem is when
Form post not including the select input
I am trying to make a form to register the number of drinks that are taken from the fridge by a certain person. Currently I have three drinks in my db, meaning that I create 3 select tags and 3 input fields for the number of drinks per drink (e.g. coke, coke zero or coke light). In the code (somewhere
Fetch json data if json still not created [closed]
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 11 months ago. Improve this question This is a sample of my form in php: I take all the values in $_GET and i want to pass them in json to
How can I create bold and italic text etc… Like stackoverflow?
How would I create a post mechanism on my website like stackoverflow with bold text and italic text and other customization like that? Right now my php database has this table for posts : I have stuff for files and text, but I don’t know how I would store the bold/normal text. And how would I take in those inputs?
Cannot Get Values from my Function to my update.php
So i cant receive the values from my function to update my database, the code is working if i manually put the values. My function My update api Answer Below code worked me, if you think it is right format you can follow:
Why does my XMLHttpRequest aborts on PHP file upload?
I’m trying to upload a video file via AJAX, a XMLHttpRequest and PHP to display the upload progress but the request throws an abort and quickly refreshes the page if I try to upload something. If I just send the POST request to the PHP file via the form, without AJAX/XMLHttpRequest, the file upload works. But a progress bar would
MongoDB nested lookup with 3 levels and append new value to the result docs
I need to retrieve the entire single object hierarchy from the database as a JSON. Actually the proposal about any other solution to achive this result would be highly appriciated. I decided to use MongoDB with its $lookup support. So I have four collections: Users Posts Comments Replies I basically need to retrieve all posts with all corresponding comments and
Upload compressed image file from client-side using JavaScript
I am trying to compress images on client side using JavaScript on some low bandwidth devices and I’m currently stuck in a limbo using the HTML5 File API. I’m new to this, please bear with me if I’m missing something important. I have some input tags which should ideally open the mobile camera, capture single image, compress and send files
WordPress JavaScript
I’m trying to achieve a custom option inside the “Publish Metabox” in WordPress admin custom post. And I want to know is there any native way to do expand/collapse divs (Check the below screenshot). I wonder how WordPress itself achieves it like the below screenshot? (Maybe match the IDs like bootstrap JS libraries do ?). Answer And I want to