I have a php page and these two inputs fields. My goal is to check if the second input is equal to first input (live) and make an error msg. The code i have so far is this: In the end of the php i have a Javascript checking: Its not working, as u understand. Any help ? PS. I’m
Tag: javascript
Datatables Editor show/hide a checkbox of a list of checkbox in edit row when another column is true/false
I’m new in Datatables and Editor. I need help to hide or show some elements of a list of checkbox depends if the boolean “deleted” is true or false. the checkbox are displayed when you edit the row, but i need to display the name of the persons that have his deleted column set to false. I’ve two tables, plus
input “datetime-local” > js code that makes the seconds run/move accurately for time to update
I would like to find out how to have the seconds run/move accurately for the time to change. is there a way I can do that with the js script that I have provided below? thank you all. Answer Using getSeconds and setSeconds works: I also changed the string slice to .slice(0,19) to show the updated seconds.
Popup won’t appear when clicked inside a table button
Can anyone suggest some alternative solution for this problem. I’ve made a popup form which i use css and javascript to trigger the display to none or flex every time i click into a specific button which is great. But this method seems to not work on a table as you can see below i’ve done a simple query which
Ajax Status Pending On Multiple Requests
I want to create a jQuery Progress Listener. I have a button which on click executes a PHP script, which runs through a bunch of functions and foreach loops and it takes a while to load. I want to get a response on each loop using the XMLHttpRequest(). I am using this youtube video as a reference. But the scripts
Image Blob not adding to the mySQL Database
So I tried so many times and tried changing things and still not working, It still add and throw null here’s the code of the HTML, PHP and also JS (just incase needed). I already tried to do some of the methods on github and stack overflow and still doesn’t work. I hope someone can help me with this issue
avoid same numbers and zero in array
I have a form with that table: jsfiddle In this form i need to enable to edit the number fields. After submit i collect the data and write to mysql. Before mysql insert i want to check that the $number array does not contain the same numbers and zero (like: 0,1,1,101,150). If yes give an error to the user that
Load the PHP contents only after switching a nav tab
I have 10 tabs on my project, each of them will fetch some values from API using PHP. It takes 10-15 seconds to load the page every time (since it updates the values for all 10 Tabs) How do i load content only after switching a tab? Load TAB1 at start, then only after clicking TAB2 or TAB3 then load
How to get the id in modal and open their data to another page with php?
I want to get the id from this modal and pass it to another page like edit_appointment.php?id=’id from modal’ the problem is I execute my php code to different file and just use Ajax request to display my data to modal. I don’t know how to call the user id here a href=”” class=”btn btn-info userdata”>Edit Appointment here’s my code
Draw a horizontal and vertical line on mouse hover in chart js
I am stuck with a problem on chart js while creating line chart. I want to create a chart with the specified data and also need to have horizontal and vertical line while I hover on intersection point. I am able to create vertical line on hover but can not find any solution where I can draw both the line.