I have a mysql query that counts how many orders have been made on my website: SELECT COUNT(`orderid`) FROM `orders` WHERE `completed` = 1 It works fine, but only when you refresh the page. If …
Tag: javascript
Input password show and hide
I hope I don’t bother you with a question 🙂 . I have little knowledge about writing code, so I encountered an error there are two inputs I added an eye icon with bootstrap when clicked, the password appears the first input works, but the second input does not show the password What do you think is the p…
In modal form get element value correct row
i have problem with getting info in my modal form. I have rows what shows information. Screen shot bellow Then i press button right im getting modal window. Screen shot bellow I want make then i press my button in right get what row info and put in input. My code in php and html MY MODAL FORM code My
Button Colour Change HTML
I know similar questions have been asked before, but it was not helpful in my case. I have tried a lot and have failed. I have an HTML code ,JS code , and php script . What’s happening now is that I have a button called “Lights On” in my html page. When i press the “Lights On” bu…
How do I optimise this repeating var code?
How do I make it optimised? It doesn’t really work with while for me. I need these rows of code to be in less rows. var a[0]=”&…
dynamically display posts of a user-chosen category without reloading page
I have a blog posts page that looks similar to this: https://magnolia.com/blog/ What I want to do is when the user clicks on a category, only posts of that type display below the search. The above …
PDFTron draw text sideways
For my specific purpose user draw rectangle annotation on web viewer and later on replace that with Free-Text in the place of Rectangle annotation. As you can see in above image i have added one …
How Autocomplete same input with the same class but only autocomplete one input at a time
I been trying to find a way of how autocomplete one input at a time , But the struggle is that the input are created from a select * from a table on a db. . And when typing in one input and selecting the result the other input changes as well. php js Answer You are changing values of
How to get input from form using PHP/Jquery live?
I have a simple HTML form that includes an input field and a submit button. How can I use JQuery to get the text from the input field live and then send that data to a PHP file that evaluates the data? Form: Edit: here’s what I want it to look like Answer Your current code doesn’t need jquery to
How can I extract bookmarks(TOC) of a PDF file using NodeJS/ReactJS/PHP?
Everyone must have seen that when you open a pdf in the browser or acrobat pdf reader a bookmarks tabs shows up just like this one In case pdf does not have bookmarks the list will be empty. So I am looking to fetch these bookmarks from the pdf using nodejs/react/php. Answer This is the link to the official d…