Skip to content

Tag: javascript

Query returns old data

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 …

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…

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 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